2018-02-07 19:35:35 -08:00
|
|
|
error[E0044]: foreign items may not have type parameters
|
2018-02-10 21:01:49 -08:00
|
|
|
--> $DIR/E0044.rs:12:5
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2018-02-10 21:01:49 -08:00
|
|
|
LL | fn sqrt<T>(f: T) -> T;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2018-02-10 21:01:49 -08:00
|
|
|
= help: use specialization instead of type parameters by replacing them with concrete types like `u32`
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0044"
|