]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/struct-with-invalid-const-param.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / struct-with-invalid-const-param.stderr
1 error[E0573]: expected type, found const parameter `C`
2   --> $DIR/struct-with-invalid-const-param.rs:4:23
3    |
4 LL | struct S<const C: u8>(C);
5    |                       ^ not a type
6
7 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
8   --> $DIR/struct-with-invalid-const-param.rs:1:12
9    |
10 LL | #![feature(const_generics)]
11    |            ^^^^^^^^^^^^^^
12    |
13    = note: `#[warn(incomplete_features)]` on by default
14    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
15
16 error: aborting due to previous error; 1 warning emitted
17
18 For more information about this error, try `rustc --explain E0573`.