diff options
Diffstat (limited to 'tests/ui/issues/issue-23491.rs')
-rw-r--r-- | tests/ui/issues/issue-23491.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-23491.rs b/tests/ui/issues/issue-23491.rs new file mode 100644 index 000000000..e5f9dd3ef --- /dev/null +++ b/tests/ui/issues/issue-23491.rs @@ -0,0 +1,8 @@ +// run-pass +#![allow(unused_variables)] + +struct Node<T: ?Sized>(#[allow(unused_tuple_struct_fields)] T); + +fn main() { + let x: Box<Node<[isize]>> = Box::new(Node([])); +} |