]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/unused_braces.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / unused_braces.stderr
1 warning: unnecessary braces around const expression
2   --> $DIR/unused_braces.rs:9:14
3    |
4 LL |     let _: A<{ 7 }>;
5    |              ^^ ^^
6    |
7 note: the lint level is defined here
8   --> $DIR/unused_braces.rs:3:9
9    |
10 LL | #![warn(unused_braces)]
11    |         ^^^^^^^^^^^^^
12 help: remove these braces
13    |
14 LL -     let _: A<{ 7 }>;
15 LL +     let _: A<7>;
16    | 
17
18 warning: 1 warning emitted
19