]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / underscore-lifetime / underscore-lifetime-elison-mismatch.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/underscore-lifetime-elison-mismatch.rs:1:49
3    |
4 LL | fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
5    |                    ------      ------           ^ ...but data from `y` flows into `x` here
6    |                                |
7    |                                these two types are declared with different lifetimes...
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0623`.