Files
rust/tests/ui/variance/variance-regions-direct.stderr

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

54 lines
1.3 KiB
Plaintext
Raw Normal View History

error[E0392]: lifetime parameter `'a` is never used
--> $DIR/variance-regions-direct.rs:52:14
|
LL | struct Test7<'a> {
| ^^ unused lifetime parameter
|
= help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
error: ['a: +, 'b: +, 'c: +]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:9:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test2<'a, 'b, 'c> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: -, 'b: -, 'c: -]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:18:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test3<'a, 'b, 'c> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: +, 'b: o]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:27:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test4<'a, 'b:'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: -, 'b: o]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:35:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test5<'a, 'b:'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: +, 'b: o]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:45:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test6<'a, 'b:'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: *]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-regions-direct.rs:52:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | struct Test7<'a> {
| ^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: ['a: -, 'b: +, 'c: o]
--> $DIR/variance-regions-direct.rs:60:1
2018-08-08 14:28:26 +02:00
|
2022-02-13 16:27:59 +01:00
LL | enum Test8<'a, 'b, 'c:'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: aborting due to 8 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0392`.