rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs

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

8 lines
150 B
Rust
Raw Normal View History

2017-09-12 06:18:01 -05:00
fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
2022-05-22 01:05:15 -05:00
y.push(z);
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
//~| ERROR cannot borrow
2017-09-12 06:18:01 -05:00
}
fn main() { }