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/offset-of | |
| 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/offset-of')
| -rw-r--r-- | tests/ui/offset-of/offset-of-tuple-field.stderr | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/ui/offset-of/offset-of-tuple-field.stderr b/tests/ui/offset-of/offset-of-tuple-field.stderr index e4a5ed09e13..01622c5fa2d 100644 --- a/tests/ui/offset-of/offset-of-tuple-field.stderr +++ b/tests/ui/offset-of/offset-of-tuple-field.stderr @@ -28,11 +28,7 @@ error[E0609]: no field `01` on type `(u8, u8)` LL | offset_of!((u8, u8), 01); | ^^ | -help: a field with a similar name exists - | -LL - offset_of!((u8, u8), 01); -LL + offset_of!((u8, u8), 0); - | + = note: available fields are: `0`, `1` error[E0609]: no field `1e2` on type `(u8, u8)` --> $DIR/offset-of-tuple-field.rs:8:26 @@ -80,11 +76,7 @@ error[E0609]: no field `01` on type `(u8, u8)` LL | builtin # offset_of((u8, u8), 01); | ^^ | -help: a field with a similar name exists - | -LL - builtin # offset_of((u8, u8), 01); -LL + builtin # offset_of((u8, u8), 0); - | + = note: available fields are: `0`, `1` error[E0609]: no field `1_` on type `(u8, u8)` --> $DIR/offset-of-tuple-field.rs:15:35 @@ -104,11 +96,7 @@ error[E0609]: no field `2` on type `(u8, u16)` LL | offset_of!(((u8, u16), (u32, u16, u8)), 0.2); | ^ | -help: a field with a similar name exists - | -LL - offset_of!(((u8, u16), (u32, u16, u8)), 0.2); -LL + offset_of!(((u8, u16), (u32, u16, u8)), 0.0); - | + = note: available fields are: `0`, `1` error[E0609]: no field `1e2` on type `(u8, u16)` --> $DIR/offset-of-tuple-field.rs:19:47 |
