]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/unique-pat-3.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / unique-pat-3.rs
index f031f7790852278ccb2886baf872c0c37bf84817..42a4b1a9c0cbfc5c11db1b5998e8f8955ce88dd0 100644 (file)
@@ -8,11 +8,14 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 enum bar { u(Box<int>), w(int), }
 
 pub fn main() {
-    assert!(match u(box 10) {
-      u(a) => {
+    assert!(match bar::u(box 10) {
+      bar::u(a) => {
         println!("{}", a);
         *a
       }