diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-23491.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-23491.rs b/src/test/ui/issues/issue-23491.rs index 1cb969731..e5f9dd3ef 100644 --- a/src/test/ui/issues/issue-23491.rs +++ b/src/test/ui/issues/issue-23491.rs @@ -1,9 +1,8 @@ // run-pass #![allow(unused_variables)] -#![feature(box_syntax)] struct Node<T: ?Sized>(#[allow(unused_tuple_struct_fields)] T); fn main() { - let x: Box<Node<[isize]>> = box Node([]); + let x: Box<Node<[isize]>> = Box::new(Node([])); } |