You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ mahad-testsuite rustc E0044.rs
error[E0044]: foreign items may not have type parameters
--> E0044.rs:3:14
|
3 | extern "C"{fnsome_func<T>(x:T);}
| ^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
|
= help:replace the type parameters with concrete types like `u32`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0044`.
Type or Const Parameters Not Allowed on Foreign Items
I tried this code from E0044:
I expected to see this happen:
Instead, this happened:
Meta
The text was updated successfully, but these errors were encountered: