]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-67375.min.stderr
Rollup merge of #77099 - tspiteri:exp_m1-examples, r=m-ou-se
[rust.git] / src / test / ui / const-generics / issue-67375.min.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/issue-67375.rs:9:25
3    |
4 LL |     inner: [(); { [|_: &T| {}; 0].len() }],
5    |                         ^ cannot perform const operation using `T`
6    |
7    = note: type parameters may not be used in const expressions
8
9 error[E0392]: parameter `T` is never used
10   --> $DIR/issue-67375.rs:7:12
11    |
12 LL | struct Bug<T> {
13    |            ^ unused parameter
14    |
15    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0392`.