File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,19 @@ fn main() {
380380```
381381"## ,
382382
383+ E0044 : r##"
384+ You can't use type parameters on foreign items. Example of erroneous code:
385+
386+ ```
387+ extern { fn some_func<T>(); }
388+ ```
389+
390+ Just remove the type parameter to make this code works:
391+
392+ ```
393+ extern { fn some_func(); }
394+ ```
395+
383396E0045: r##"
384397Rust only supports variadic parameters for interoperability with C code in its
385398FFI. As such, variadic parameters can only be used with functions which are
@@ -1488,7 +1501,9 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
14881501}
14891502
14901503register_diagnostics ! {
1491- E0044 , // foreign items may not have type parameters
1504+ E0034 , // multiple applicable methods in scope
1505+ E0035 , // does not take type parameters
1506+ E0036 , // incorrect number of type parameters given for this method
14921507 E0068 ,
14931508 E0071 ,
14941509 E0074 ,
You can’t perform that action at this time.
0 commit comments