1 error: expressions must be enclosed in braces to be used as const generic arguments
2 --> $DIR/macro_rules-braces.rs:48:17
4 LL | let _: baz!(m::P);
7 help: enclose the `const` expression in braces
9 LL | let _: baz!({ m::P });
12 error: expressions must be enclosed in braces to be used as const generic arguments
13 --> $DIR/macro_rules-braces.rs:68:17
15 LL | let _: baz!(10 + 7);
18 help: enclose the `const` expression in braces
20 LL | let _: baz!({ 10 + 7 });
23 error: generic parameters may not be used in const operations
24 --> $DIR/macro_rules-braces.rs:36:20
26 LL | let _: foo!({{ N }});
27 | ^ cannot perform const operation using `N`
29 = help: const parameters may only be used as standalone arguments, i.e. `N`
30 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
32 error: generic parameters may not be used in const operations
33 --> $DIR/macro_rules-braces.rs:40:19
35 LL | let _: bar!({ N });
36 | ^ cannot perform const operation using `N`
38 = help: const parameters may only be used as standalone arguments, i.e. `N`
39 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
41 error: generic parameters may not be used in const operations
42 --> $DIR/macro_rules-braces.rs:45:20
44 LL | let _: baz!({{ N }});
45 | ^ cannot perform const operation using `N`
47 = help: const parameters may only be used as standalone arguments, i.e. `N`
48 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
50 error: generic parameters may not be used in const operations
51 --> $DIR/macro_rules-braces.rs:50:19
53 LL | let _: biz!({ N });
54 | ^ cannot perform const operation using `N`
56 = help: const parameters may only be used as standalone arguments, i.e. `N`
57 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
59 error: aborting due to 6 previous errors