Skip to content

box_syntax allowed in generated function #20882

New issue

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

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

Already on GitHub? # to your account

Closed
mathall opened this issue Jan 10, 2015 · 4 comments
Closed

box_syntax allowed in generated function #20882

mathall opened this issue Jan 10, 2015 · 4 comments

Comments

@mathall
Copy link

mathall commented Jan 10, 2015

macro_rules! gen_test {
  () => (
    fn test() {
      println!("{}", box 1);
    }
  );
}

gen_test!();

fn main() {
  test();
  //println!("{}", box 1);  // error, requires #![feature(box_syntax)]
}
@sfackler
Copy link
Member

Dup of #20661

@mathall
Copy link
Author

mathall commented Jan 10, 2015

I don't think that's a proper dup. My bad for not writing a truly minimal test case, I suppose.

macro_rules! gen_test {
  () => (
    fn test() {
      box 1;
    }
  );
}

gen_test!();

fn main() {
  test();
  //box 1;  // error, requires #![feature(box_syntax)]
}

@sfackler sfackler reopened this Jan 10, 2015
@sfackler
Copy link
Member

Ah, sorry about that! Nominating.

@alexcrichton
Copy link
Member

While not a dupe of #20661, I think this is a dupe of #12122

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants