]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/macro_rules-braces.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / macro_rules-braces.full.stderr
1 error: expressions must be enclosed in braces to be used as const generic arguments
2   --> $DIR/macro_rules-braces.rs:49:17
3    |
4 LL |     let _: baz!(m::P);
5    |                 ^^^^
6    |
7 help: enclose the `const` expression in braces
8    |
9 LL |     let _: baz!({ m::P });
10    |                 ^      ^
11
12 error: expressions must be enclosed in braces to be used as const generic arguments
13   --> $DIR/macro_rules-braces.rs:69:17
14    |
15 LL |     let _: baz!(10 + 7);
16    |                 ^^^^^^
17    |
18 help: enclose the `const` expression in braces
19    |
20 LL |     let _: baz!({ 10 + 7 });
21    |                 ^        ^
22
23 error: constant expression depends on a generic parameter
24   --> $DIR/macro_rules-braces.rs:16:13
25    |
26 LL |             [u8; $x]
27    |             ^^^^^^^^
28 ...
29 LL |     let _: foo!({{ N }});
30    |            ------------- in this macro invocation
31    |
32    = note: this may fail depending on what value the parameter takes
33    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error: constant expression depends on a generic parameter
36   --> $DIR/macro_rules-braces.rs:21:13
37    |
38 LL |             [u8; { $x }]
39    |             ^^^^^^^^^^^^
40 ...
41 LL |     let _: bar!({ N });
42    |            ----------- in this macro invocation
43    |
44    = note: this may fail depending on what value the parameter takes
45    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
46
47 error: constant expression depends on a generic parameter
48   --> $DIR/macro_rules-braces.rs:26:13
49    |
50 LL |             Foo<$x>
51    |             ^^^^^^^
52 ...
53 LL |     let _: baz!({{ N }});
54    |            ------------- in this macro invocation
55    |
56    = note: this may fail depending on what value the parameter takes
57    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
58
59 error: constant expression depends on a generic parameter
60   --> $DIR/macro_rules-braces.rs:31:13
61    |
62 LL |             Foo<{ $x }>
63    |             ^^^^^^^^^^^
64 ...
65 LL |     let _: biz!({ N });
66    |            ----------- in this macro invocation
67    |
68    = note: this may fail depending on what value the parameter takes
69    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
70
71 error: aborting due to 6 previous errors
72