]> git.proxmox.com Git - rustc.git/blame - src/test/ui/variance/variance-invariant-arg-trait-match.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / variance / variance-invariant-arg-trait-match.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/variance-invariant-arg-trait-match.rs:10:5
b7449926 3 |
532ac7d7 4LL | impls_get::<G,&'min i32>()
b7449926
XL
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
6 |
7 = note: expected type `Get<&'min i32>`
8 found type `Get<&'max i32>`
c295e0f8 9note: the lifetime `'min` as defined here...
0731742a 10 --> $DIR/variance-invariant-arg-trait-match.rs:7:21
b7449926
XL
11 |
12LL | fn get_min_from_max<'min, 'max, G>()
13 | ^^^^
c295e0f8 14note: ...does not necessarily outlive the lifetime `'max` as defined here
0731742a 15 --> $DIR/variance-invariant-arg-trait-match.rs:7:27
b7449926
XL
16 |
17LL | fn get_min_from_max<'min, 'max, G>()
18 | ^^^^
19
20error[E0308]: mismatched types
0731742a 21 --> $DIR/variance-invariant-arg-trait-match.rs:16:5
b7449926 22 |
532ac7d7 23LL | impls_get::<G,&'max i32>()
b7449926
XL
24 | ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
25 |
26 = note: expected type `Get<&'max i32>`
27 found type `Get<&'min i32>`
c295e0f8 28note: the lifetime `'min` as defined here...
0731742a 29 --> $DIR/variance-invariant-arg-trait-match.rs:13:21
b7449926
XL
30 |
31LL | fn get_max_from_min<'min, 'max, G>()
32 | ^^^^
c295e0f8 33note: ...does not necessarily outlive the lifetime `'max` as defined here
0731742a 34 --> $DIR/variance-invariant-arg-trait-match.rs:13:27
b7449926
XL
35 |
36LL | fn get_max_from_min<'min, 'max, G>()
37 | ^^^^
38
39error: aborting due to 2 previous errors
40
41For more information about this error, try `rustc --explain E0308`.