diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-06 15:55:42 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 15:55:42 +0200 | 
| commit | e89ae47b978f50b6fc1873d65486d661520bdf28 (patch) | |
| tree | ae387ab4a528a1d83c3816a5da26bc8772bd0723 /tests/ui/structs/tuple-struct-field-naming-47073.rs | |
| parent | dc0bae1db725fbba8524f195f74f680995fd549e (diff) | |
| parent | 7196d8cd661b875401126a81641d2effc40b3d85 (diff) | |
| download | rust-e89ae47b978f50b6fc1873d65486d661520bdf28.tar.gz rust-e89ae47b978f50b6fc1873d65486d661520bdf28.zip | |
Rollup merge of #144552 - Oneirical:uncountable-integer-3, r=jieyouxu
Rehome 33 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` rust-lang/rust#143902 divided into smaller, easier to review chunks. Part of rust-lang/rust#133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer Inspired by the methodology that ``@Kivooeo`` was using. r? ``@jieyouxu``
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` +} | 
