]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/struct-with-invalid-const-param.stderr
Auto merge of #75293 - poliorcetics:intra-doc-links-std-path, r=jyn514
[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    | ----------------------^--
6    | |                     |
7    | |                     help: a struct with a similar name exists: `S`
8    | similarly named struct `S` defined here
9
10 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
11   --> $DIR/struct-with-invalid-const-param.rs:1:12
12    |
13 LL | #![feature(const_generics)]
14    |            ^^^^^^^^^^^^^^
15    |
16    = note: `#[warn(incomplete_features)]` on by default
17    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0573`.