]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/tag-variant-cast-non-nullary.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / tag-variant-cast-non-nullary.rs
index 1d05c5d181da5e3f1af3c783c448464c7bed6cca..b01063291266c37a55749e4a1d9a1f120308ff47 100644 (file)
 
 enum non_nullary {
     nullary,
-    other(int),
+    other(isize),
 }
 
 fn main() {
     let v = non_nullary::nullary;
-    let val = v as int;
+    let val = v as isize;
 }