]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/unused_braces.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / const-generics / unused_braces.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/unused_braces.rs:4:12
3 |
4 LL | #![feature(const_generics)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10 warning: unnecessary braces around const expression
11 --> $DIR/unused_braces.rs:11:14
12 |
13 LL | let _: A<{ 7 }>;
14 | ^^^^^ help: remove these braces
15 |
16 note: the lint level is defined here
17 --> $DIR/unused_braces.rs:2:9
18 |
19 LL | #![warn(unused_braces)]
20 | ^^^^^^^^^^^^^
21
22 warning: 2 warnings emitted
23