]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/struct-with-invalid-const-param.stderr
Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichton
[rust.git] / src / test / ui / const-generics / struct-with-invalid-const-param.stderr
1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2   --> $DIR/struct-with-invalid-const-param.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6
7 error[E0573]: expected type, found const parameter `C`
8   --> $DIR/struct-with-invalid-const-param.rs:4:23
9    |
10 LL | struct S<const C: u8>(C);
11    |                       ^ help: a struct with a similar name exists: `S`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0573`.