summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr
blob: 72e4265b3d7ffdc7b013a6cdbecc8330a1085d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: lifetime may not live long enough
  --> $DIR/unsatisfied-outlives-bounds.rs:10:14
   |
LL | fn parametrized0<'any>() {
   |                  ---- lifetime `'any` defined here
LL |     let () = C::<'static, &'any ()>;
   |              ^^^^^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`

error: lifetime may not live long enough
  --> $DIR/unsatisfied-outlives-bounds.rs:14:14
   |
LL | fn parametrized1<'any>() {
   |                  ---- lifetime `'any` defined here
LL |     let () = K::<'static, 'any>;
   |              ^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`

error: aborting due to 2 previous errors