2020-10-12 21:27:59 +00:00
|
|
|
error: generic parameters may not be used in const operations
|
2021-08-27 16:04:57 +00:00
|
|
|
--> $DIR/issue-67375.rs:7:25
|
2020-10-03 16:00:18 +00:00
|
|
|
|
|
|
|
|
LL | inner: [(); { [|_: &T| {}; 0].len() }],
|
2020-10-11 15:47:45 +00:00
|
|
|
| ^ cannot perform const operation using `T`
|
2020-10-03 16:00:18 +00:00
|
|
|
|
|
2020-10-12 21:27:59 +00:00
|
|
|
= note: type parameters may not be used in const expressions
|
2023-11-30 19:59:51 +00:00
|
|
|
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-10-03 16:00:18 +00:00
|
|
|
|
2024-02-01 14:58:07 +00:00
|
|
|
error[E0392]: type parameter `T` is never used
|
2021-08-27 16:04:57 +00:00
|
|
|
--> $DIR/issue-67375.rs:5:12
|
2020-10-03 16:00:18 +00:00
|
|
|
|
|
|
|
|
LL | struct Bug<T> {
|
2024-02-01 14:58:07 +00:00
|
|
|
| ^ unused type parameter
|
2020-10-03 16:00:18 +00:00
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
2024-02-01 14:58:07 +00:00
|
|
|
= help: if you intended `T` to be a const parameter, use `const T: /* Type */` instead
|
2020-10-03 16:00:18 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0392`.
|