rust/src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr

11 lines
363 B
Plaintext
Raw Normal View History

2017-08-06 04:09:43 +05:30
error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-one-is-struct-4.rs:14:11
|
13 | fn foo(mut y: Ref, x: &u32) {
| --- ---- these two types are declared with different lifetimes...
2017-11-20 13:13:27 +01:00
14 | y.b = x; //~ ERROR lifetime mismatch
2017-08-06 04:09:43 +05:30
| ^ ...but data from `x` flows into `y` here
error: aborting due to previous error