1
Fork 0

Specific labels when referring to "expected" and "found" types

This commit is contained in:
Esteban Küber 2019-11-13 14:16:56 -08:00
parent a0d40f8bdf
commit 83ffda5216
406 changed files with 1598 additions and 1518 deletions

View file

@ -4,8 +4,8 @@ error[E0308]: mismatched types
LL | ss.t = t;
| ^ lifetime mismatch
|
= note: expected type `&'a MyBox<(dyn Test + 'static)>`
found type `&'a MyBox<(dyn Test + 'a)>`
= note: expected reference `&'a MyBox<(dyn Test + 'static)>`
found reference `&'a MyBox<(dyn Test + 'a)>`
note: the lifetime `'a` as defined on the function body at 20:6...
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:20:6
|