fork/rust

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

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

master
1.2 KiB34 linesraw
1error: generic parameters may not be used in const operations
2  --> $DIR/issue-64173-unused-lifetimes.rs:16:23
3   |
4LL |     beta: [(); foo::<&'a ()>()],
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: generic `Self` types are currently not permitted in anonymous constants
11  --> $DIR/issue-64173-unused-lifetimes.rs:4:28
12   |
13LL |     array: [(); size_of::<&Self>()],
14   |                            ^^^^
15
16error[E0392]: parameter `'s` is never used
17  --> $DIR/issue-64173-unused-lifetimes.rs:3:12
18   |
19LL | struct Foo<'s> {
20   |            ^^ unused parameter
21   |
22   = help: consider removing `'s`, referring to it in a field, or using a marker such as `PhantomData`
23
24error[E0392]: parameter `'a` is never used
25  --> $DIR/issue-64173-unused-lifetimes.rs:15:12
26   |
27LL | struct Bar<'a> {
28   |            ^^ unused parameter
29   |
30   = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
31
32error: aborting due to 4 previous errors
33
34For more information about this error, try `rustc --explain E0392`.