diff options
| author | Michael Goulet <michael@errs.io> | 2022-06-19 15:10:42 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-06-19 15:10:42 -0700 |
| commit | 4400a26e31363acd7427d47f7dff33da18419fcf (patch) | |
| tree | fc2bb4173e81151a9b9665276286365966adbd37 /src/test/ui/error-codes | |
| parent | 2b646bd533e8a20c06a71d0b7837e15eb4c79fa8 (diff) | |
| download | rust-4400a26e31363acd7427d47f7dff33da18419fcf.tar.gz rust-4400a26e31363acd7427d47f7dff33da18419fcf.zip | |
Make missing argument placeholder more obvious that it's a placeholder
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0057.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0060.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0061.stderr | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/error-codes/E0057.stderr b/src/test/ui/error-codes/E0057.stderr index 4b4d30a8387..3697b5fcf15 100644 --- a/src/test/ui/error-codes/E0057.stderr +++ b/src/test/ui/error-codes/E0057.stderr @@ -11,8 +11,8 @@ LL | let f = |x| x * 3; | ^^^ help: provide the argument | -LL | let a = f({_}); - | ~~~~~~ +LL | let a = f(/* value */); + | ~~~~~~~~~~~~~~ error[E0057]: this function takes 1 argument but 2 arguments were supplied --> $DIR/E0057.rs:5:13 diff --git a/src/test/ui/error-codes/E0060.stderr b/src/test/ui/error-codes/E0060.stderr index 9dd649239e2..644fd598338 100644 --- a/src/test/ui/error-codes/E0060.stderr +++ b/src/test/ui/error-codes/E0060.stderr @@ -11,8 +11,8 @@ LL | fn printf(_: *const u8, ...) -> u32; | ^^^^^^ help: provide the argument | -LL | unsafe { printf({*const u8}); } - | ~~~~~~~~~~~~~~~~~~~ +LL | unsafe { printf(/* *const u8 */); } + | ~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error diff --git a/src/test/ui/error-codes/E0061.stderr b/src/test/ui/error-codes/E0061.stderr index f92c548f2de..fa55db0924d 100644 --- a/src/test/ui/error-codes/E0061.stderr +++ b/src/test/ui/error-codes/E0061.stderr @@ -11,8 +11,8 @@ LL | fn f(a: u16, b: &str) {} | ^ ------ ------- help: provide the argument | -LL | f(0, {&str}); - | ~~~~~~~~~~~~ +LL | f(0, /* &str */); + | ~~~~~~~~~~~~~~~~ error[E0061]: this function takes 1 argument but 0 arguments were supplied --> $DIR/E0061.rs:9:5 @@ -27,8 +27,8 @@ LL | fn f2(a: u16) {} | ^^ ------ help: provide the argument | -LL | f2({u16}); - | ~~~~~~~~~ +LL | f2(/* u16 */); + | ~~~~~~~~~~~~~ error: aborting due to 2 previous errors |
