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

@ -26,7 +26,7 @@ impl<T> Foo<T> for Bar<T> {
fn fails_copy(self) {
require_copy(self.x);
//~^ ERROR the trait `std::marker::Copy` is not implemented for the type `T`
//~^ ERROR the predicate `T : std::marker::Copy` is not satisfied
}
}