Skip to content

box_syntax allowed in generated function #20882

Closed
@mathall

Description

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

gen_test!();

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions