blob: 46ba22961639d0eabc17567725cefa3be7e5d8e8 [file] [log] [blame]
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() { }