diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-07-30 16:21:40 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-07 21:39:00 +0000 |
| commit | a17e8cfe8f64ed8c14ffa44081f518b617bfbe35 (patch) | |
| tree | 395338287778e922074b0d5fcb6977a74f3c6a96 /tests/ui/tuple | |
| parent | dd3b8255ca6215b5129181ceb6912aed1370bdce (diff) | |
| download | rust-a17e8cfe8f64ed8c14ffa44081f518b617bfbe35.tar.gz rust-a17e8cfe8f64ed8c14ffa44081f518b617bfbe35.zip | |
Do not provide field typo suggestions for tuples and tuple structs
Diffstat (limited to 'tests/ui/tuple')
| -rw-r--r-- | tests/ui/tuple/index-invalid.stderr | 12 | ||||
| -rw-r--r-- | tests/ui/tuple/tuple-index-out-of-bounds.stderr | 12 |
2 files changed, 4 insertions, 20 deletions
diff --git a/tests/ui/tuple/index-invalid.stderr b/tests/ui/tuple/index-invalid.stderr index acc4134d1a6..fee09b7947c 100644 --- a/tests/ui/tuple/index-invalid.stderr +++ b/tests/ui/tuple/index-invalid.stderr @@ -4,11 +4,7 @@ error[E0609]: no field `1` on type `(((),),)` LL | let _ = (((),),).1.0; | ^ unknown field | -help: a field with a similar name exists - | -LL - let _ = (((),),).1.0; -LL + let _ = (((),),).0.0; - | + = note: available field is: `0` error[E0609]: no field `1` on type `((),)` --> $DIR/index-invalid.rs:4:24 @@ -16,11 +12,7 @@ error[E0609]: no field `1` on type `((),)` LL | let _ = (((),),).0.1; | ^ unknown field | -help: a field with a similar name exists - | -LL - let _ = (((),),).0.1; -LL + let _ = (((),),).0.0; - | + = note: available field is: `0` error[E0609]: no field `000` on type `(((),),)` --> $DIR/index-invalid.rs:6:22 diff --git a/tests/ui/tuple/tuple-index-out-of-bounds.stderr b/tests/ui/tuple/tuple-index-out-of-bounds.stderr index 72827690909..2be9d5631f7 100644 --- a/tests/ui/tuple/tuple-index-out-of-bounds.stderr +++ b/tests/ui/tuple/tuple-index-out-of-bounds.stderr @@ -4,11 +4,7 @@ error[E0609]: no field `2` on type `Point` LL | origin.2; | ^ unknown field | -help: a field with a similar name exists - | -LL - origin.2; -LL + origin.0; - | + = note: available fields are: `0`, `1` error[E0609]: no field `2` on type `({integer}, {integer})` --> $DIR/tuple-index-out-of-bounds.rs:12:11 @@ -16,11 +12,7 @@ error[E0609]: no field `2` on type `({integer}, {integer})` LL | tuple.2; | ^ unknown field | -help: a field with a similar name exists - | -LL - tuple.2; -LL + tuple.0; - | + = note: available fields are: `0`, `1` error: aborting due to 2 previous errors |
