diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-10-28 16:05:07 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-10-28 16:05:50 -0700 |
| commit | 3e22e0c3bc54825f096111bc86ea6e4a6b076ba0 (patch) | |
| tree | 1ee646f9aee37b8f86ef84f5265d8809e6512bcf /src/test/ui/missing | |
| parent | 3e6f30ec3e6bda159063fcd126dcb14725fef92d (diff) | |
| download | rust-3e22e0c3bc54825f096111bc86ea6e4a6b076ba0.tar.gz rust-3e22e0c3bc54825f096111bc86ea6e4a6b076ba0.zip | |
Use token description in "expected/found" parse messages
Diffstat (limited to 'src/test/ui/missing')
| -rw-r--r-- | src/test/ui/missing/missing-block-hint.stderr | 3 | ||||
| -rw-r--r-- | src/test/ui/missing/missing-semicolon-warning.stderr | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/missing/missing-block-hint.stderr b/src/test/ui/missing/missing-block-hint.stderr index a48eff890b3..dbbfd10b795 100644 --- a/src/test/ui/missing/missing-block-hint.stderr +++ b/src/test/ui/missing/missing-block-hint.stderr @@ -2,7 +2,7 @@ error: expected `{`, found `=>` --> $DIR/missing-block-hint.rs:13:18 | LL | if (foo) => {} //~ ERROR expected `{`, found `=>` - | -- ^^ + | -- ^^ expected `{` | | | this `if` statement has a condition, but no block @@ -14,6 +14,7 @@ LL | if (foo) LL | bar; //~ ERROR expected `{`, found `bar` | ^^^- | | + | expected `{` | help: try placing this code inside a block: `{ bar; }` error: aborting due to 2 previous errors diff --git a/src/test/ui/missing/missing-semicolon-warning.stderr b/src/test/ui/missing/missing-semicolon-warning.stderr index 72319a257d8..b4427565a86 100644 --- a/src/test/ui/missing/missing-semicolon-warning.stderr +++ b/src/test/ui/missing/missing-semicolon-warning.stderr @@ -1,4 +1,4 @@ -warning: expected `;`, found `let` +warning: expected `;`, found keyword `let` --> $DIR/missing-semicolon-warning.rs:16:12 | LL | $( let x = $e1 )*; //~ WARN expected `;` |
