summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-50716.stderr
blob: a09e76705156e2df7a52abde947a915be4aab188 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: lifetime may not live long enough
  --> $DIR/issue-50716.rs:14:14
   |
LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
   |        -- lifetime `'a` defined here
...
LL |     let _x = *s;
   |              ^^ proving this value is `Sized` requires that `'a` must outlive `'static`

error: aborting due to 1 previous error