]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/numbered_fields.fixed
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / numbered_fields.fixed
index 1da97e9687988aa856051a79a1a7b868b6b0d7b6..68c987eb4c6771702ffac0374e4463631af244a9 100644 (file)
@@ -1,5 +1,6 @@
 //run-rustfix
 #![warn(clippy::init_numbered_fields)]
+#![allow(unused_tuple_struct_fields)]
 
 #[derive(Default)]
 struct TupleStruct(u32, u32, u8);
@@ -30,4 +31,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 };
 }