Skip to content

Commit 2e53ac5

Browse files
authored
Rollup merge of #75007 - GuillaumeGomez:cleanup-e0743, r=pickfire
Clean up E0743 explanation r? @Dylan-DPC
2 parents 302dfbc + 4bd313f commit 2e53ac5

File tree

1 file changed

+5
-6
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-6
lines changed

src/librustc_error_codes/error_codes/E0743.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ Erroneous code example:
88
fn foo2(x: u8, y: &...) {} // error!
99
```
1010

11-
Only foreign functions can use the C-variadic type (`...`).
12-
In such functions, `...` may only occur non-nested.
13-
That is, `y: &'a ...` is not allowed.
11+
Only foreign functions can use the C-variadic type (`...`). In such functions,
12+
`...` may only occur non-nested. That is, `y: &'a ...` is not allowed.
1413

15-
A C-variadic type is used to give an undefined number
16-
of parameters to a given function (like `printf` in C).
17-
The equivalent in Rust would be to use macros directly.
14+
A C-variadic type is used to give an undefined number of parameters to a given
15+
function (like `printf` in C). The equivalent in Rust would be to use macros
16+
directly (like `println!` for example).

0 commit comments

Comments
 (0)