fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: generic parameters may not be used in const operations 2 --> $DIR/issue-67375.rs:7:25 3 | 4LL | inner: [(); { [|_: &T| {}; 0].len() }], 5 | ^ cannot perform const operation using `T` 6 | 7 = note: type parameters may not be used in const expressions 8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 9 10error[E0392]: parameter `T` is never used 11 --> $DIR/issue-67375.rs:5:12 12 | 13LL | struct Bug<T> { 14 | ^ unused parameter 15 | 16 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` 17 = help: if you intended `T` to be a const parameter, use `const T: usize` instead 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0392`.