]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-50716.nll.stderr
Auto merge of #66911 - eddyb:nicer-rustc_regions, r=matthewjasper
[rust.git] / src / test / ui / nll / issue-50716.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-50716.rs:14:14
3    |
4 LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
5    |        -- lifetime `'a` defined here
6 ...
7 LL |     let _x = *s;
8    |              ^^ proving this value is `Sized` requires that `'a` must outlive `'static`
9    |
10    = help: consider replacing `'a` with `'static`
11
12 error: aborting due to previous error
13