rust/src/test/ui/error-codes/E0044.stderr

12 lines
380 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0044]: foreign items may not have type parameters
--> $DIR/E0044.rs:12:5
2018-02-07 19:35:35 -08:00
|
LL | fn sqrt<T>(f: T) -> T;
| ^^^^^^^^^^^^^^^^^^^^^^
2018-02-07 19:35:35 -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"