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:
parent
513d9f208c
commit
8a461d940c
159 changed files with 420 additions and 297 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue