]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-50716.stderr
fix merge conflicts
[rust.git] / src / test / ui / nll / issue-50716.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-50716.rs:14:9
3    |
4 LL |     let _x = *s;
5    |         ^^ lifetime mismatch
6    |
7    = note: expected type `std::marker::Sized`
8               found type `std::marker::Sized`
9 note: the lifetime 'a as defined on the function body at 9:8...
10   --> $DIR/issue-50716.rs:9:8
11    |
12 LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
13    |        ^^
14    = note: ...does not necessarily outlive the static lifetime
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.