Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros inside default methods throw internal compiler error #3911

Closed
dustinlacewell opened this issue Nov 3, 2012 · 0 comments
Closed

Macros inside default methods throw internal compiler error #3911

dustinlacewell opened this issue Nov 3, 2012 · 0 comments

Comments

@dustinlacewell
Copy link

Using a macro from within a trait's default method causes an internal compiler error:

trait Foo {
  fn val() -> int;
  fn print() {
    io::println(fmt!("%?", self.val()));
  }
}

struct Bar { 
  val: int,
}

impl Bar: Foo {
  fn val() -> int { self.val }
 }

error: internal compiler error: unexpanded macro

@brson brson closed this as completed in 762101b Nov 3, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 5, 2024
…li-obk

Add vector clock to epoll ready lists

Replaces rust-lang#3928

Fixes rust-lang#3911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants