rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
129 B
Rust
Raw Normal View History

2017-08-25 11:51:22 +05:30
fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
2022-05-22 02:05:15 -04:00
x.push(y);
2022-04-01 13:13:25 -04:00
//~^ ERROR lifetime may not live long enough
2017-08-25 11:51:22 +05:30
}
2017-11-20 13:13:27 +01:00
fn main() { }