rust/tests/ui/type/type-check/issue-40294.rs

14 lines
234 B
Rust

trait Foo: Sized {
fn foo(self);
}
fn foo<'a,'b,T>(x: &'a T, y: &'b T)
where &'a T : Foo, //~ ERROR type annotations needed
&'b T : Foo
{
x.foo(); //~ ERROR type annotations needed
y.foo();
}
fn main() { }