diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-6318.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/issues/issue-6318.rs b/src/test/ui/issues/issue-6318.rs index d8bd83f0d..e5f245f6f 100644 --- a/src/test/ui/issues/issue-6318.rs +++ b/src/test/ui/issues/issue-6318.rs @@ -1,8 +1,6 @@ // run-pass // pretty-expanded FIXME #23616 -#![feature(box_syntax)] - pub enum Thing { A(Box<dyn Foo+'static>) } @@ -16,7 +14,7 @@ pub struct Struct; impl Foo for Struct {} pub fn main() { - match Thing::A(box Struct as Box<dyn Foo + 'static>) { + match Thing::A(Box::new(Struct) as Box<dyn Foo + 'static>) { Thing::A(_a) => 0, }; } |