diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-03-06 18:29:41 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-03-07 13:49:36 -0800 |
| commit | e62a54334445cd806bfc7bb9a7a41b63413fbedc (patch) | |
| tree | 1d3eb2c3b93edfb94e1624ed5f75334574d6b697 /src/test/ui/pattern | |
| parent | 1c77a1fa3ca574f2a40056f64d498db8efe0d8a8 (diff) | |
| download | rust-e62a54334445cd806bfc7bb9a7a41b63413fbedc.tar.gz rust-e62a54334445cd806bfc7bb9a7a41b63413fbedc.zip | |
Account for `if (let pat = expr) {}`
Partially address #82827.
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/issue-82290.stderr | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/pattern/issue-82290.stderr b/src/test/ui/pattern/issue-82290.stderr index 65ef018dc97..666b1e785bf 100644 --- a/src/test/ui/pattern/issue-82290.stderr +++ b/src/test/ui/pattern/issue-82290.stderr @@ -4,8 +4,7 @@ error: `let` expressions are not supported here LL | if true && let x = 1 { | ^^^^^^^^^ | - = note: only supported directly in conditions of `if`- and `while`-expressions - = note: as well as when nested within `&&` and parenthesis in those conditions + = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses warning: the feature `let_chains` is incomplete and may not be safe to use and/or cause compiler crashes --> $DIR/issue-82290.rs:1:12 |
