rust/tests/ui/const-generics/issue-46511.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
748 B
Plaintext
Raw Normal View History

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
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
2022-06-29 20:16:36 +00:00
error[E0392]: parameter `'a` is never used
--> $DIR/issue-46511.rs:3:12
|
LL | struct Foo<'a>
| ^^ unused parameter
|
= 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`.