rust/src/test/ui/issues/issue-21974.stderr

19 lines
440 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0283]: type annotations required: cannot resolve `&'a T: Foo`
2018-12-25 08:56:47 -07:00
--> $DIR/issue-21974.rs:10:1
2018-07-15 14:11:54 -07:00
|
LL | trait Foo {
| --------- required by `Foo`
...
2019-03-09 15:03:44 +03:00
LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T)
2018-07-15 14:11:54 -07:00
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`.