summary refs log tree commit diff
path: root/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs
blob: 6f95d5a710dfb62b51191a3260b3a661b49accc0 (plain)
1
2
3
4
5
6
7
8
9
trait Foo {
    fn foo<'a>(x: &mut Vec<&u8>, y: &u8);
}
impl Foo for () {
    fn foo(x: &mut Vec<&u8>, y: &u8) {
        x.push(y); //~ ERROR lifetime mismatch
    }
}
fn main() {}