diff options
| author | yukang <moorekang@gmail.com> | 2022-11-09 22:00:22 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2022-11-10 00:43:12 +0800 |
| commit | c69872bb6c0657241a5b3cf8944861dbd3ff7468 (patch) | |
| tree | d2708c03d37a36d4383a23e72e125ee4e57db1bc /src/test/ui | |
| parent | 5689f9c679838a921be5a0ac64e0cd13637efc35 (diff) | |
| download | rust-c69872bb6c0657241a5b3cf8944861dbd3ff7468.tar.gz rust-c69872bb6c0657241a5b3cf8944861dbd3ff7468.zip | |
add 'is_assign_rhs' to avoid weird suggesting 'let'
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/suggestions/issue-104086-suggest-let.stderr | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/test/ui/suggestions/issue-104086-suggest-let.stderr b/src/test/ui/suggestions/issue-104086-suggest-let.stderr index d37a18f005f..fb4ea3121ac 100644 --- a/src/test/ui/suggestions/issue-104086-suggest-let.stderr +++ b/src/test/ui/suggestions/issue-104086-suggest-let.stderr @@ -2,7 +2,12 @@ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:2:5 | LL | x = x = x; - | ^ not found in this scope + | ^ + | +help: you might have meant to introduce a new binding + | +LL | let x = x = x; + | +++ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:2:9 @@ -20,7 +25,12 @@ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:7:5 | LL | x = y = y = y; - | ^ not found in this scope + | ^ + | +help: you might have meant to introduce a new binding + | +LL | let x = y = y = y; + | +++ error[E0425]: cannot find value `y` in this scope --> $DIR/issue-104086-suggest-let.rs:7:9 @@ -44,7 +54,12 @@ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:13:5 | LL | x = y = y; - | ^ not found in this scope + | ^ + | +help: you might have meant to introduce a new binding + | +LL | let x = y = y; + | +++ error[E0425]: cannot find value `y` in this scope --> $DIR/issue-104086-suggest-let.rs:13:9 @@ -62,7 +77,12 @@ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:18:5 | LL | x = x = y; - | ^ not found in this scope + | ^ + | +help: you might have meant to introduce a new binding + | +LL | let x = x = y; + | +++ error[E0425]: cannot find value `x` in this scope --> $DIR/issue-104086-suggest-let.rs:18:9 |
