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
|
@ -4,7 +4,7 @@ error[E0277]: cannot multiply `T` by `T`
|
|||
LL | type Alias<T> = <T as std::ops::Mul>::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `T * T`
|
||||
|
|
||||
help: consider restricting type parameter `T`
|
||||
help: consider restricting type parameter `T` with trait `std::ops::Mul`
|
||||
|
|
||||
LL | type Alias<T: std::ops::Mul> = <T as std::ops::Mul>::Output;
|
||||
| +++++++++++++++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue