diff options
| author | Oneirical <manchot@videotron.ca> | 2025-07-13 16:25:27 -0400 |
|---|---|---|
| committer | Oneirical <manchot@videotron.ca> | 2025-08-04 16:43:53 -0400 |
| commit | 7196d8cd661b875401126a81641d2effc40b3d85 (patch) | |
| tree | 4e3f314add6e442f40dc9cba83c397a942c01776 /tests/ui/structs/tuple-struct-field-naming-47073.rs | |
| parent | 4b596bbd847672da87763b76171687d3544863c2 (diff) | |
| download | rust-7196d8cd661b875401126a81641d2effc40b3d85.tar.gz rust-7196d8cd661b875401126a81641d2effc40b3d85.zip | |
Rehome tests/ui/issues/ tests [3/?]
Diffstat (limited to 'tests/ui/structs/tuple-struct-field-naming-47073.rs')
| -rw-r--r-- | tests/ui/structs/tuple-struct-field-naming-47073.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/structs/tuple-struct-field-naming-47073.rs b/tests/ui/structs/tuple-struct-field-naming-47073.rs new file mode 100644 index 00000000000..6cf27e55c4b --- /dev/null +++ b/tests/ui/structs/tuple-struct-field-naming-47073.rs @@ -0,0 +1,13 @@ +// https://github.com/rust-lang/rust/issues/47073 +type Guilty = bool; +type FineDollars = u32; + +struct Verdict(Guilty, Option<FineDollars>); + +fn main() { + let justice = Verdict(true, Some(2718)); + let _condemned = justice.00; + //~^ ERROR no field `00` on type `Verdict` + let _punishment = justice.001; + //~^ ERROR no field `001` on type `Verdict` +} |
