1
1
error: expressions must be enclosed in braces to be used as const generic arguments
2
- --> $DIR/macro_rules-braces.rs:34 :17
2
+ --> $DIR/macro_rules-braces.rs:49 :17
3
3
|
4
- LL | let _: baz!(N );
5
- | ^
4
+ LL | let _: baz!(m::P );
5
+ | ^^^^
6
6
|
7
7
help: enclose the `const` expression in braces
8
8
|
9
- LL | let _: baz!({ N });
10
- | ^ ^
9
+ LL | let _: baz!({ m::P });
10
+ | ^ ^
11
11
12
12
error: expressions must be enclosed in braces to be used as const generic arguments
13
- --> $DIR/macro_rules-braces.rs:54 :17
13
+ --> $DIR/macro_rules-braces.rs:69 :17
14
14
|
15
15
LL | let _: baz!(10 + 7);
16
16
| ^^^^^^
@@ -21,31 +21,31 @@ LL | let _: baz!({ 10 + 7 });
21
21
| ^ ^
22
22
23
23
error: generic parameters may not be used in const operations
24
- --> $DIR/macro_rules-braces.rs:31 :20
24
+ --> $DIR/macro_rules-braces.rs:37 :20
25
25
|
26
26
LL | let _: foo!({{ N }});
27
27
| ^ cannot perform const operation using `N`
28
28
|
29
29
= help: const parameters may only be used as standalone arguments, i.e. `N`
30
30
31
31
error: generic parameters may not be used in const operations
32
- --> $DIR/macro_rules-braces.rs:33 :19
32
+ --> $DIR/macro_rules-braces.rs:41 :19
33
33
|
34
34
LL | let _: bar!({ N });
35
35
| ^ cannot perform const operation using `N`
36
36
|
37
37
= help: const parameters may only be used as standalone arguments, i.e. `N`
38
38
39
39
error: generic parameters may not be used in const operations
40
- --> $DIR/macro_rules-braces.rs:36 :20
40
+ --> $DIR/macro_rules-braces.rs:46 :20
41
41
|
42
42
LL | let _: baz!({{ N }});
43
43
| ^ cannot perform const operation using `N`
44
44
|
45
45
= help: const parameters may only be used as standalone arguments, i.e. `N`
46
46
47
47
error: generic parameters may not be used in const operations
48
- --> $DIR/macro_rules-braces.rs:38 :19
48
+ --> $DIR/macro_rules-braces.rs:51 :19
49
49
|
50
50
LL | let _: biz!({ N });
51
51
| ^ cannot perform const operation using `N`
0 commit comments