1 error: expressions must be enclosed in braces to be used as const generic arguments
2 --> $DIR/macro_rules-braces.rs:54:17
4 LL | let _: baz!(10 + 7);
7 help: enclose the `const` expression in braces
9 LL | let _: baz!({ 10 + 7 });
12 error: constant expression depends on a generic parameter
13 --> $DIR/macro_rules-braces.rs:10:13
18 LL | let _: foo!({{ N }});
19 | ------------- in this macro invocation
21 = note: this may fail depending on what value the parameter takes
22 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24 error: constant expression depends on a generic parameter
25 --> $DIR/macro_rules-braces.rs:15:13
30 LL | let _: bar!({ N });
31 | ----------- in this macro invocation
33 = note: this may fail depending on what value the parameter takes
34 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
36 error: constant expression depends on a generic parameter
37 --> $DIR/macro_rules-braces.rs:20:13
42 LL | let _: baz!({{ N }});
43 | ------------- in this macro invocation
45 = note: this may fail depending on what value the parameter takes
46 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
48 error: constant expression depends on a generic parameter
49 --> $DIR/macro_rules-braces.rs:25:13
54 LL | let _: biz!({ N });
55 | ----------- in this macro invocation
57 = note: this may fail depending on what value the parameter takes
58 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60 error: aborting due to 5 previous errors