summary refs log tree commit diff
path: root/src/test/ui/variance/variance-invariant-self-trait-match.nll.stderr
blob: 7b7c42fea8da82a12dadb04381f9b645d49f904f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error: lifetime may not live long enough
  --> $DIR/variance-invariant-self-trait-match.rs:10:5
   |
LL | fn get_min_from_max<'min, 'max, G>()
   |                     ----  ---- lifetime `'max` defined here
   |                     |
   |                     lifetime `'min` defined here
...
LL |     impls_get::<&'min G>();
   |     ^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`

error: lifetime may not live long enough
  --> $DIR/variance-invariant-self-trait-match.rs:16:5
   |
LL | fn get_max_from_min<'min, 'max, G>()
   |                     ----  ---- lifetime `'max` defined here
   |                     |
   |                     lifetime `'min` defined here
...
LL |     impls_get::<&'max G>();
   |     ^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`

error: aborting due to 2 previous errors