suggest adding a where-clause when that can help

suggest adding a where-clause when there is an unmet trait-bound that
can be satisfied if some type can implement it.
pull/10/head
Ariel Ben-Yehuda 9 years ago committed by Manish Goregaokar
parent a35ea15442
commit e2862658d2

@ -64,7 +64,7 @@ fn main() {
```
```text
<anon>:10:5: 10:8 error: the trait `Trait` is not implemented for the type `&mut i32` [E0277]
<anon>:10:5: 10:8 error: the predicate `&mut i32 : Trait` is not satisfied [E0277]
<anon>:10 foo(t);
^~~
```

Loading…
Cancel
Save