mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
12 lines
209 B
Rust
12 lines
209 B
Rust
trait Foo<'a> {}
|
|
impl<'a, T> Foo<'a> for T {}
|
|
|
|
fn baz<'a, 'b, T>(x: &mut Vec<&'a T>, y: &T)
|
|
where i32: Foo<'a>,
|
|
u32: Foo<'b>
|
|
{
|
|
x.push(y); //~ ERROR explicit lifetime required
|
|
}
|
|
fn main() {
|
|
}
|