2017-08-05 17:39:43 -05:00
|
|
|
trait Foo {
|
|
|
|
fn foo<'a>(x: &mut Vec<&u8>, y: &u8);
|
2017-06-29 14:40:04 -05:00
|
|
|
}
|
2017-08-05 17:39:43 -05:00
|
|
|
impl Foo for () {
|
|
|
|
fn foo(x: &mut Vec<&u8>, y: &u8) {
|
2017-11-20 06:13:27 -06:00
|
|
|
x.push(y); //~ ERROR lifetime mismatch
|
2017-08-05 17:39:43 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {}
|