summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-newtype-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/generic-newtype-struct.rs')
-rw-r--r--tests/ui/generics/generic-newtype-struct.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/generics/generic-newtype-struct.rs b/tests/ui/generics/generic-newtype-struct.rs
new file mode 100644
index 000000000..aa879f01a
--- /dev/null
+++ b/tests/ui/generics/generic-newtype-struct.rs
@@ -0,0 +1,8 @@
+// run-pass
+// pretty-expanded FIXME #23616
+
+struct S<T>(#[allow(unused_tuple_struct_fields)] T);
+
+pub fn main() {
+ let _s = S(2);
+}