Make wording less confusing
This commit is contained in:
parent
14e6947fa4
commit
ef62e05062
5 changed files with 17 additions and 23 deletions
|
|
@ -1,7 +1,7 @@
|
|||
extern {
|
||||
fn sqrt<T>(f: T) -> T;
|
||||
//~^ ERROR foreign items may not have type parameters [E0044]
|
||||
//~| HELP use specialization instead of type parameters by replacing them with concrete types
|
||||
//~| HELP replace the type parameters with concrete types
|
||||
//~| NOTE can't have type parameters
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0044]: foreign items may not have type parameters
|
|||
LL | fn sqrt<T>(f: T) -> T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
|
||||
|
|
||||
= help: use specialization instead of type parameters by replacing them with concrete types like `u32`
|
||||
= help: replace the type parameters with concrete types like `u32`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue