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() {
380
380
```
381
381
"## ,
382
382
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
+
383
396
E0045: r##"
384
397
Rust only supports variadic parameters for interoperability with C code in its
385
398
FFI. 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
1488
1501
}
1489
1502
1490
1503
register_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
1492
1507
E0068 ,
1493
1508
E0071 ,
1494
1509
E0074 ,
You can’t perform that action at this time.
0 commit comments