diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs b/src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs deleted file mode 100644 index 96d266350..000000000 --- a/src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs +++ /dev/null @@ -1,20 +0,0 @@ -// run-pass -#![allow(dead_code)] -#![allow(unused_variables)] -// Test case from #39963. - -#[derive(Clone)] -struct Foo(Option<Box<Foo>>, Option<Box<Foo>>); - -fn test(f: &mut Foo) { - match *f { - Foo(Some(ref mut left), Some(ref mut right)) => match **left { - Foo(Some(ref mut left), Some(ref mut right)) => panic!(), - _ => panic!(), - }, - _ => panic!(), - } -} - -fn main() { -} |