reword trait bound suggestion message to include the bounds
This commit is contained in:
parent
68253e14ee
commit
d13c34828e
155 changed files with 331 additions and 314 deletions
|
@ -42,7 +42,7 @@ error[E0277]: the trait bound `I: Foo` is not satisfied
|
|||
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `I`
|
||||
|
|
||||
help: consider restricting type parameter `I`
|
||||
help: consider restricting type parameter `I` with trait `Foo`
|
||||
|
|
||||
LL | fn baz<I: Foo>(x: &<I as Foo<A = Bar>>::A) {}
|
||||
| +++++
|
||||
|
@ -53,7 +53,7 @@ error[E0277]: the trait bound `I: Foo` is not satisfied
|
|||
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
||||
| ^^ the trait `Foo` is not implemented for `I`
|
||||
|
|
||||
help: consider restricting type parameter `I`
|
||||
help: consider restricting type parameter `I` with trait `Foo`
|
||||
|
|
||||
LL | fn baz<I: Foo>(x: &<I as Foo<A = Bar>>::A) {}
|
||||
| +++++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue