summary refs log tree commit diff
path: root/src/test/ui/const-generics/macro_rules-braces.full.stderr
blob: f6e9aabd907744151518f582e14cea8647072a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
error: expressions must be enclosed in braces to be used as const generic arguments
  --> $DIR/macro_rules-braces.rs:34:17
   |
LL |     let _: baz!(N);
   |                 ^
   |
help: enclose the `const` expression in braces
   |
LL |     let _: baz!({ N });
   |                 ^   ^

error: constant expression depends on a generic parameter
  --> $DIR/macro_rules-braces.rs:10:13
   |
LL |             [u8; $x]
   |             ^^^^^^^^
...
LL |     let _: foo!({{ N }});
   |            ------------- in this macro invocation
   |
   = note: this may fail depending on what value the parameter takes
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: constant expression depends on a generic parameter
  --> $DIR/macro_rules-braces.rs:15:13
   |
LL |             [u8; { $x }]
   |             ^^^^^^^^^^^^
...
LL |     let _: bar!({ N });
   |            ----------- in this macro invocation
   |
   = note: this may fail depending on what value the parameter takes
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: constant expression depends on a generic parameter
  --> $DIR/macro_rules-braces.rs:20:13
   |
LL |             Foo<$x>
   |             ^^^^^^^
...
LL |     let _: baz!({{ N }});
   |            ------------- in this macro invocation
   |
   = note: this may fail depending on what value the parameter takes
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: constant expression depends on a generic parameter
  --> $DIR/macro_rules-braces.rs:25:13
   |
LL |             Foo<{ $x }>
   |             ^^^^^^^^^^^
...
LL |     let _: biz!({ N });
   |            ----------- in this macro invocation
   |
   = note: this may fail depending on what value the parameter takes
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors