mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
11 lines
206 B
Rust
11 lines
206 B
Rust
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 may not live long enough
|
|
}
|
|
}
|
|
fn main() {}
|