1
Fork 0

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.
This commit is contained in:
Ariel Ben-Yehuda 2016-03-29 20:12:31 +03:00 committed by Ariel Ben-Yehuda
parent 513d9f208c
commit 8a461d940c
159 changed files with 420 additions and 297 deletions

View file

@ -23,5 +23,5 @@ fn bar<T: Send>(_: T) {}
fn main() {
let x = Foo { a: 5 };
bar(x);
//~^ ERROR the trait `std::marker::Send` is not implemented
//~^ ERROR `Foo : std::marker::Send` is not satisfied
}