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

16 lines
489 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0044]: foreign items may not have type parameters
--> $DIR/E0044.rs:11:10
|
2018-02-22 18:42:32 -06:00
LL | extern { fn some_func<T>(x: T); } //~ ERROR E0044
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^
|
help: consider using specialization instead of type parameters
--> $DIR/E0044.rs:11:10
|
2018-02-22 18:42:32 -06:00
LL | extern { fn some_func<T>(x: T); } //~ ERROR E0044
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0044"