1
Fork 0

Merged migrated compile-fail tests and ui tests. Fixes #46841.

This commit is contained in:
David Wood 2018-08-08 14:50:16 +02:00
parent 3e0a407988
commit 3fc7ab2373
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154
6584 changed files with 886 additions and 764 deletions

View file

@ -0,0 +1,18 @@
error[E0308]: mismatched types
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:31:12
|
LL | ss.t = t; //~ ERROR mismatched types
| ^ lifetime mismatch
|
= note: expected type `&'a MyBox<(dyn Test + 'static)>`
found type `&'a MyBox<(dyn Test + 'a)>`
note: the lifetime 'a as defined on the function body at 30:6...
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:30:6
|
LL | fn c<'a>(t: &'a MyBox<Test+'a>, mut ss: SomeStruct<'a>) {
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.