fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
748 B20 linesraw
1error: generic parameters may not be used in const operations
2  --> $DIR/issue-46511.rs:5:35
3   |
4LL |     _a: [u8; std::mem::size_of::<&'a mut u8>()]
5   |                                   ^^ cannot perform const operation using `'a`
6   |
7   = note: lifetime parameters may not be used in const expressions
8   = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10error[E0392]: parameter `'a` is never used
11  --> $DIR/issue-46511.rs:3:12
12   |
13LL | struct Foo<'a>
14   |            ^^ unused parameter
15   |
16   = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0392`.