]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr
Adding E0623 for structs
[rust.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-one-is-struct-4.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/ex3-both-anon-regions-one-is-struct-4.rs:14:11
3    |
4 13 | fn foo(mut y: Ref, x: &u32) {
5    |               ---     ---- these two types are declared with different lifetimes...
6 14 |     y.b = x;
7    |           ^ ...but data from `x` flows into `y` here
8
9 error: aborting due to previous error
10