blob: 9e60a70bc16b2c97499b1edebdec8bc39d3d6c60 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/variance-contravariant-self-trait-match.rs:25:5
|
LL | impls_get::<&'min G>(); //~ ERROR mismatched types
| ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
= note: expected type `Get`
found type `Get`
note: the lifetime 'min as defined on the function body at 22:21...
--> $DIR/variance-contravariant-self-trait-match.rs:22:21
|
LL | fn get_min_from_max<'min, 'max, G>()
| ^^^^
note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 22:27
--> $DIR/variance-contravariant-self-trait-match.rs:22:27
|
LL | fn get_min_from_max<'min, 'max, G>()
| ^^^^
error[E0308]: mismatched types
--> $DIR/variance-contravariant-self-trait-match.rs:34:5
|
LL | impls_get::<&'max G>(); //~ ERROR mismatched types
| ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
= note: expected type `Get`
found type `Get`
note: the lifetime 'min as defined on the function body at 28:21...
--> $DIR/variance-contravariant-self-trait-match.rs:28:21
|
LL | fn get_max_from_min<'min, 'max, G>()
| ^^^^
note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 28:27
--> $DIR/variance-contravariant-self-trait-match.rs:28:27
|
LL | fn get_max_from_min<'min, 'max, G>()
| ^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.