rust/src/test/ui/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

12 lines
461 B
Plaintext

error[E0623]: lifetime mismatch
--> $DIR/ex3-both-anon-regions-using-fn-items.rs:11:10
|
LL | fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
| --- --- these two types are declared with different lifetimes...
LL | y.push(z); //~ ERROR lifetime mismatch
| ^ ...but data from `z` flows into `y` here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.