rust/src/test/ui/regions/regions-infer-paramd-indirect.stderr
Vadim Petrochenkov fa72a81bea Update tests
2019-03-11 23:10:26 +03:00

29 lines
845 B
Plaintext

error[E0308]: mismatched types
--> $DIR/regions-infer-paramd-indirect.rs:22:18
|
LL | self.f = b;
| ^ lifetime mismatch
|
= note: expected type `std::boxed::Box<std::boxed::Box<&'a isize>>`
found type `std::boxed::Box<std::boxed::Box<&isize>>`
note: the anonymous lifetime #2 defined on the method body at 21:5...
--> $DIR/regions-infer-paramd-indirect.rs:21:5
|
LL | / fn set_f_bad(&mut self, b: Box<B>) {
LL | | self.f = b;
LL | |
LL | |
LL | |
LL | |
LL | | }
| |_____^
note: ...does not necessarily outlive the lifetime 'a as defined on the impl at 16:6
--> $DIR/regions-infer-paramd-indirect.rs:16:6
|
LL | impl<'a> SetF<'a> for C<'a> {
| ^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.