fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
701 B19 linesraw
1error[E0392]: parameter `'a` is never used
2  --> $DIR/variance-unused-region-param.rs:3:19
3   |
4LL | struct SomeStruct<'a> { x: u32 }
5   |                   ^^ unused parameter
6   |
7   = help: consider removing `'a`, referring to it in a field, or using a marker such as `std::marker::PhantomData`
8
9error[E0392]: parameter `'a` is never used
10  --> $DIR/variance-unused-region-param.rs:4:15
11   |
12LL | enum SomeEnum<'a> { Nothing }
13   |               ^^ unused parameter
14   |
15   = help: consider removing `'a`, referring to it in a field, or using a marker such as `std::marker::PhantomData`
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0392`.