]> git.proxmox.com Git - rustc.git/blame - src/test/ui/variance/variance-invariant-self-trait-match.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / variance / variance-invariant-self-trait-match.stderr
CommitLineData
b7449926
XL
1error[E0308]: mismatched types
2 --> $DIR/variance-invariant-self-trait-match.rs:22:5
3 |
4LL | impls_get::<&'min G>(); //~ ERROR mismatched types
5 | ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
6 |
7 = note: expected type `Get`
8 found type `Get`
9note: the lifetime 'min as defined on the function body at 19:21...
10 --> $DIR/variance-invariant-self-trait-match.rs:19:21
11 |
12LL | fn get_min_from_max<'min, 'max, G>()
13 | ^^^^
14note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 19:27
15 --> $DIR/variance-invariant-self-trait-match.rs:19:27
16 |
17LL | fn get_min_from_max<'min, 'max, G>()
18 | ^^^^
19
20error[E0308]: mismatched types
21 --> $DIR/variance-invariant-self-trait-match.rs:28:5
22 |
23LL | impls_get::<&'max G>(); //~ ERROR mismatched types
24 | ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
25 |
26 = note: expected type `Get`
27 found type `Get`
28note: the lifetime 'min as defined on the function body at 25:21...
29 --> $DIR/variance-invariant-self-trait-match.rs:25:21
30 |
31LL | fn get_max_from_min<'min, 'max, G>()
32 | ^^^^
33note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 25:27
34 --> $DIR/variance-invariant-self-trait-match.rs:25:27
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`.