diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-08-09 20:29:39 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-08-10 12:04:10 -0700 |
| commit | eef284be59bbbe50e4d5369542a80e1ccd2ba7ab (patch) | |
| tree | e071f85f8fcfeb6ca763eb37ca0d1b2d9e9901a5 /src/test/ui/error-codes | |
| parent | 18f3be7704a4ec7976fcd1272c728974243d29bd (diff) | |
| download | rust-eef284be59bbbe50e4d5369542a80e1ccd2ba7ab.tar.gz rust-eef284be59bbbe50e4d5369542a80e1ccd2ba7ab.zip | |
Tweak ordering of suggestions
Modify logic to make it easier to follow and recover labels that would otherwise be lost.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0423.stderr | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0423.stderr b/src/test/ui/error-codes/E0423.stderr index 077367de9d8..e43b3c3546b 100644 --- a/src/test/ui/error-codes/E0423.stderr +++ b/src/test/ui/error-codes/E0423.stderr @@ -34,15 +34,18 @@ LL | struct Foo { a: bool }; LL | LL | let f = Foo(); | ^^^^^ +... +LL | fn foo() { + | -------- similarly named function `foo` defined here | -help: a function with a similar name exists - | -LL | let f = foo(); - | ^^^ help: use struct literal syntax instead | LL | let f = Foo { a: val }; | ^^^^^^^^^^^^^^ +help: a function with a similar name exists + | +LL | let f = foo(); + | ^^^ error[E0423]: expected value, found struct `T` --> $DIR/E0423.rs:14:8 |
