]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-using-impl-items.rs
1 trait Foo {
2     fn foo<'a>(x: &mut Vec<&u8>, y: &u8);
3 }
4 impl Foo for () {
5     fn foo(x: &mut Vec<&u8>, y: &u8) {
6         x.push(y);
7         //~^ ERROR lifetime may not live long enough
8     }
9 }
10 fn main() {}