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
|
@ -15,7 +15,7 @@ help: consider cloning the value if the performance cost is acceptable
|
|||
|
|
||||
LL | !x.clone();
|
||||
| ++++++++
|
||||
help: consider further restricting this bound
|
||||
help: consider further restricting this bound with trait `Copy`
|
||||
|
|
||||
LL | fn move_then_borrow<T: Not<Output=T> + Clone + Copy>(x: T) {
|
||||
| ++++++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue