]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrowck-univariant-enum.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / run-pass / borrowck-univariant-enum.rs
index 0910f02dc29f399753c1edf39d237d3123c2c29d..8192566da19656c5c22f59232fc1bf646efbcc1a 100644 (file)
@@ -13,7 +13,7 @@
 use std::gc::GC;
 
 enum newtype {
-    newtype(int)
+    newvar(int)
 }
 
 pub fn main() {
@@ -22,9 +22,9 @@ pub fn main() {
     // specially.
 
     let x = box(GC) Cell::new(5);
-    let y = box(GC) Cell::new(newtype(3));
+    let y = box(GC) Cell::new(newvar(3));
     let z = match y.get() {
-      newtype(b) => {
+      newvar(b) => {
         x.set(x.get() + 1);
         x.get() * b
       }