rust/src/test/ui/issues/issue-21974.stderr
Esteban Küber bd7ea5441e Use PredicateObligations instead of Predicates
Keep more information about trait binding failures.
2020-04-08 14:40:45 -07:00

15 lines
390 B
Plaintext

error[E0283]: type annotations needed
--> $DIR/issue-21974.rs:11:19
|
LL | trait Foo {
| --------- required by this bound in `Foo`
...
LL | where &'a T : Foo,
| ^^^ cannot infer type for reference `&'a T`
|
= note: cannot satisfy `&'a T: Foo`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.