]> git.proxmox.com Git - rustc.git/blame - src/test/ui/variance/variance-invariant-arg-trait-match.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / variance / variance-invariant-arg-trait-match.nll.stderr
CommitLineData
48663c56
XL
1error: lifetime may not live long enough
2 --> $DIR/variance-invariant-arg-trait-match.rs:10:5
3 |
4LL | fn get_min_from_max<'min, 'max, G>()
5 | ---- ---- lifetime `'max` defined here
6 | |
7 | lifetime `'min` defined here
8...
9LL | impls_get::<G,&'min i32>()
10 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
60c5eb7d
XL
11 |
12 = help: consider adding the following bound: `'min: 'max`
48663c56
XL
13
14error: lifetime may not live long enough
15 --> $DIR/variance-invariant-arg-trait-match.rs:16:5
16 |
17LL | fn get_max_from_min<'min, 'max, G>()
18 | ---- ---- lifetime `'max` defined here
19 | |
20 | lifetime `'min` defined here
21...
22LL | impls_get::<G,&'max i32>()
23 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
60c5eb7d
XL
24 |
25 = help: consider adding the following bound: `'min: 'max`
48663c56
XL
26
27error: aborting due to 2 previous errors
28