2023-05-05 20:42:51 +00:00
|
|
|
error: generic parameters may not be used in const operations
|
2022-06-29 20:16:36 +00:00
|
|
|
--> $DIR/issue-46511.rs:5:35
|
|
|
|
|
|
|
|
|
LL | _a: [u8; std::mem::size_of::<&'a mut u8>()]
|
2023-05-05 20:42:51 +00:00
|
|
|
| ^^ cannot perform const operation using `'a`
|
2022-06-29 20:16:36 +00:00
|
|
|
|
|
2023-05-05 20:42:51 +00:00
|
|
|
= note: lifetime 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
|
2022-06-29 20:16:36 +00:00
|
|
|
|
2024-02-01 14:58:07 +00:00
|
|
|
error[E0392]: lifetime parameter `'a` is never used
|
2022-06-29 20:16:36 +00:00
|
|
|
--> $DIR/issue-46511.rs:3:12
|
|
|
|
|
|
|
|
|
LL | struct Foo<'a>
|
2024-02-01 14:58:07 +00:00
|
|
|
| ^^ unused lifetime parameter
|
2022-06-29 20:16:36 +00:00
|
|
|
|
|
|
|
|
= help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2023-05-05 20:42:51 +00:00
|
|
|
For more information about this error, try `rustc --explain E0392`.
|