diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-01 15:19:00 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-01 15:19:00 +0200 |
| commit | 4bd313fb0fd3436058c10c95958f3eb80125a2a3 (patch) | |
| tree | 11e52859fcb54366c2a8cdb60bd18530b1f6ab93 /src/librustc_error_codes/error_codes | |
| parent | 3a92b9987abd01c4b7e59c870e85beb9dd4d4aa2 (diff) | |
| download | rust-4bd313fb0fd3436058c10c95958f3eb80125a2a3.tar.gz rust-4bd313fb0fd3436058c10c95958f3eb80125a2a3.zip | |
Clean up E0743 explanation
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). |
