about summary refs log tree commit diff
path: root/tests/ui/numbered_fields.fixed
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2022-05-03 13:39:38 +0100
committerAlex Macleod <alex@macleod.io>2022-05-03 14:28:27 +0100
commitd53293d52ac69d238b86a8ec8690e446e7ec789a (patch)
tree91d5c780efd702f55f6059b2a91eb21683ab2b6e /tests/ui/numbered_fields.fixed
parent95f8b2600240022f0a82e703b35d4bc14a42eb1b (diff)
downloadrust-d53293d52ac69d238b86a8ec8690e446e7ec789a.tar.gz
rust-d53293d52ac69d238b86a8ec8690e446e7ec789a.zip
Ignore type aliases in `init_numbered_fields`
Diffstat (limited to 'tests/ui/numbered_fields.fixed')
-rw-r--r--tests/ui/numbered_fields.fixed5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/numbered_fields.fixed b/tests/ui/numbered_fields.fixed
index 1da97e96879..3710b3e9c81 100644
--- a/tests/ui/numbered_fields.fixed
+++ b/tests/ui/numbered_fields.fixed
@@ -30,4 +30,9 @@ fn main() {
 
     // Ok because it's in macro
     let _ = tuple_struct_init!();
+
+    type Alias = TupleStruct;
+
+    // Aliases can't be tuple constructed #8638
+    let _ = Alias { 0: 0, 1: 1, 2: 2 };
 }