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
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue