fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expressions must be enclosed in braces to be used as const generic arguments 2 --> $DIR/macro_rules-braces.rs:44:17 3 | 4LL | let _: baz!(m::P); 5 | ^^^^ 6 | 7help: enclose the `const` expression in braces 8 | 9LL | let _: baz!({ m::P }); 10 | + + 11 12error: expressions must be enclosed in braces to be used as const generic arguments 13 --> $DIR/macro_rules-braces.rs:64:17 14 | 15LL | let _: baz!(10 + 7); 16 | ^^^^^^ 17 | 18help: enclose the `const` expression in braces 19 | 20LL | let _: baz!({ 10 + 7 }); 21 | + + 22 23error: generic parameters may not be used in const operations 24 --> $DIR/macro_rules-braces.rs:32:20 25 | 26LL | let _: foo!({{ N }}); 27 | ^ cannot perform const operation using `N` 28 | 29 = help: const parameters may only be used as standalone arguments, i.e. `N` 30 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 31 32error: generic parameters may not be used in const operations 33 --> $DIR/macro_rules-braces.rs:36:19 34 | 35LL | let _: bar!({ N }); 36 | ^ cannot perform const operation using `N` 37 | 38 = help: const parameters may only be used as standalone arguments, i.e. `N` 39 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 40 41error: generic parameters may not be used in const operations 42 --> $DIR/macro_rules-braces.rs:41:20 43 | 44LL | let _: baz!({{ N }}); 45 | ^ cannot perform const operation using `N` 46 | 47 = help: const parameters may only be used as standalone arguments, i.e. `N` 48 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 49 50error: generic parameters may not be used in const operations 51 --> $DIR/macro_rules-braces.rs:46:19 52 | 53LL | let _: biz!({ N }); 54 | ^ cannot perform const operation using `N` 55 | 56 = help: const parameters may only be used as standalone arguments, i.e. `N` 57 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 58 59error: aborting due to 6 previous errors 60