about summary refs log tree commit diff
path: root/src/test/run-pass/nested-patterns.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-01-03 15:08:48 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-01-13 14:45:21 -0800
commit119c6141f568b8b5bca141b24d3cbd3e1aacb2c7 (patch)
treedd7f94c989ed3b4f59408e84577deab696b73930 /src/test/run-pass/nested-patterns.rs
parentce358fca333db7bc0ac1bffa1daa13099b2561d8 (diff)
downloadrust-119c6141f568b8b5bca141b24d3cbd3e1aacb2c7.tar.gz
rust-119c6141f568b8b5bca141b24d3cbd3e1aacb2c7.zip
librustc: Remove `@` pointer patterns from the language
Diffstat (limited to 'src/test/run-pass/nested-patterns.rs')
-rw-r--r--src/test/run-pass/nested-patterns.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/run-pass/nested-patterns.rs b/src/test/run-pass/nested-patterns.rs
index ccb6ec59ed1..1cbed9c29ec 100644
--- a/src/test/run-pass/nested-patterns.rs
+++ b/src/test/run-pass/nested-patterns.rs
@@ -8,16 +8,14 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
-
-struct A { a: int, b: @int }
+struct A { a: int, b: int }
 struct B { a: int, b: C }
 struct D { a: int, d: C }
 struct C { c: int }
 
 pub fn main() {
-    match A {a: 10, b: @20} {
-        x@A {a, b: @20} => { assert!(x.a == 10); assert!(a == 10); }
+    match A {a: 10, b: 20} {
+        x@A {a, b: 20} => { assert!(x.a == 10); assert!(a == 10); }
         A {b: _b, ..} => { fail!(); }
     }
     let mut x@B {b, ..} = B {a: 10, b: C {c: 20}};