rust/src/test/ui/nll/issue-50716.stderr
2019-10-11 16:08:53 +09:00

19 lines
560 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-50716.rs:14:9
|
LL | let _x = *s;
| ^^ lifetime mismatch
|
= note: expected type `std::marker::Sized`
found type `std::marker::Sized`
note: the lifetime `'a` as defined on the function body at 9:8...
--> $DIR/issue-50716.rs:9:8
|
LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.