blob: 7ceb2bd23f6cd5799fafd8d87fdb8d11e5bd453e [file] [log] [blame]
error[E0283]: type annotations needed: cannot resolve `&'a T: Foo`
--> $DIR/issue-21974.rs:10:1
|
LL | trait Foo {
| --------- required by `Foo`
...
LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T)
LL | | where &'a T : Foo,
LL | | &'b T : Foo
LL | | {
LL | | x.foo();
LL | | y.foo();
LL | | }
| |_^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.