File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -381,19 +381,19 @@ fn main() {
381381"## ,
382382
383383E0045 : r##"
384- Variadic parameters are only allowed in extern "C" code. Example of
385- erroneous codes :
384+ Variadic parameters are only allowed in extern "C" code. Examples of
385+ erroneous code :
386386
387387```
388388extern "rust-call" { fn foo(x: u8, ...); }
389389// or
390390fn foo(x: u8, ...) {}
391391```
392392
393- To fix these codes , put them in extern "C" block:
393+ To fix such code , put them in extern "C" block:
394394
395395```
396- extern "C" { fn foo(x: u8, ...); }
396+ extern "C" fn foo (x: u8, ...);
397397```
398398"## ,
399399
@@ -1551,7 +1551,6 @@ register_diagnostics! {
15511551 E0219 , // associated type defined in higher-ranked supertrait
15521552 E0220 , // associated type not found for type parameter
15531553 E0221 , // ambiguous associated type in bounds
1554- E0222 , // variadic function must have C calling convention
15551554 E0223 , // ambiguous associated type
15561555 E0224 , // at least one non-builtin train is required for an object type
15571556 E0225 , // only the builtin traits can be used as closure or object bounds
You can’t perform that action at this time.
0 commit comments