]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issue-67375.full.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issue-67375.full.stderr
1 warning: cannot use constants which depend on generic parameters in types
2 --> $DIR/issue-67375.rs:8:12
3 |
4 LL | inner: [(); { [|_: &T| {}; 0].len() }],
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(const_evaluatable_unchecked)]` on by default
8 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9 = note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
10
11 error[E0392]: parameter `T` is never used
12 --> $DIR/issue-67375.rs:6:12
13 |
14 LL | struct Bug<T> {
15 | ^ unused parameter
16 |
17 = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
18 = help: if you intended `T` to be a const parameter, use `const T: usize` instead
19
20 error: aborting due to previous error; 1 warning emitted
21
22 For more information about this error, try `rustc --explain E0392`.