diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-04-30 20:37:42 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-04-30 20:37:42 -0700 |
| commit | 617ce2b7ee330bbcc7ce8eb87160c71ad995639b (patch) | |
| tree | 2737b98c97ad94492241db0f67c7ab52666085a0 /src/test/ui/parser/expr-as-stmt.fixed | |
| parent | bff0be37845a96010fa2161bbf137fadfe763ae5 (diff) | |
| download | rust-617ce2b7ee330bbcc7ce8eb87160c71ad995639b.tar.gz rust-617ce2b7ee330bbcc7ce8eb87160c71ad995639b.zip | |
Reword ambigous parse error to fit with the current error
Diffstat (limited to 'src/test/ui/parser/expr-as-stmt.fixed')
| -rw-r--r-- | src/test/ui/parser/expr-as-stmt.fixed | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/parser/expr-as-stmt.fixed b/src/test/ui/parser/expr-as-stmt.fixed index 123f06e7707..1ce6f9c2503 100644 --- a/src/test/ui/parser/expr-as-stmt.fixed +++ b/src/test/ui/parser/expr-as-stmt.fixed @@ -27,14 +27,14 @@ fn baz() -> i32 { fn qux(a: Option<u32>, b: Option<u32>) -> bool { (if let Some(x) = a { true } else { false }) - && //~ ERROR ambiguous parse + && //~ ERROR expected expression if let Some(y) = a { true } else { false } } fn moo(x: u32) -> bool { (match x { _ => 1, - }) > 0 //~ ERROR ambiguous parse + }) > 0 //~ ERROR expected expression } fn main() {} |
