diff options
Diffstat (limited to 'src/test/ui/issues/issue-4972.rs')
-rw-r--r-- | src/test/ui/issues/issue-4972.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/issues/issue-4972.rs b/src/test/ui/issues/issue-4972.rs deleted file mode 100644 index 3f1c6f855..000000000 --- a/src/test/ui/issues/issue-4972.rs +++ /dev/null @@ -1,17 +0,0 @@ -#![feature(box_patterns)] - -trait MyTrait { - fn dummy(&self) {} -} - -pub enum TraitWrapper { - A(Box<dyn MyTrait + 'static>), -} - -fn get_tw_map(tw: &TraitWrapper) -> &dyn MyTrait { - match *tw { - TraitWrapper::A(box ref map) => map, //~ ERROR cannot be dereferenced - } -} - -pub fn main() {} |