diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-08-01 09:30:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 09:30:19 -0700 |
| commit | 2e53ac53e7e760d46f47a3aed806b172ccffd88d (patch) | |
| tree | 87c1c6b8bc8c3d0b7b3cc234a66a58b24db5c0c1 /src/librustc_error_codes/error_codes | |
| parent | 302dfbc5674bc05c931e1f61a7fcf69aad79c2ca (diff) | |
| parent | 4bd313fb0fd3436058c10c95958f3eb80125a2a3 (diff) | |
| download | rust-2e53ac53e7e760d46f47a3aed806b172ccffd88d.tar.gz rust-2e53ac53e7e760d46f47a3aed806b172ccffd88d.zip | |
Rollup merge of #75007 - GuillaumeGomez:cleanup-e0743, r=pickfire
Clean up E0743 explanation r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0743.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/librustc_error_codes/error_codes/E0743.md b/src/librustc_error_codes/error_codes/E0743.md index 1780fe59cbd..ddd3136df0c 100644 --- a/src/librustc_error_codes/error_codes/E0743.md +++ b/src/librustc_error_codes/error_codes/E0743.md @@ -8,10 +8,9 @@ Erroneous code example: fn foo2(x: u8, y: &...) {} // error! ``` -Only foreign functions can use the C-variadic type (`...`). -In such functions, `...` may only occur non-nested. -That is, `y: &'a ...` is not allowed. +Only foreign functions can use the C-variadic type (`...`). In such functions, +`...` may only occur non-nested. That is, `y: &'a ...` is not allowed. -A C-variadic type is used to give an undefined number -of parameters to a given function (like `printf` in C). -The equivalent in Rust would be to use macros directly. +A C-variadic type is used to give an undefined number of parameters to a given +function (like `printf` in C). The equivalent in Rust would be to use macros +directly (like `println!` for example). |
