]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/bogus-tag.rs
Make name resolution errors non-fatal
[rust.git] / src / test / compile-fail / bogus-tag.rs
index 704d856f106b280468522ff0377c02c0882c77a3..a1021500be3d7ed959b035c997a1b59e88492644 100644 (file)
@@ -9,14 +9,12 @@
 // except according to those terms.
 
 
-// error-pattern: unresolved
-
 enum color { rgb(isize, isize, isize), rgba(isize, isize, isize, isize), }
 
 fn main() {
-    let red: color = rgb(255, 0, 0);
+    let red: color = color::rgb(255, 0, 0);
     match red {
-      rgb(r, g, b) => { println!("rgb"); }
-      hsl(h, s, l) => { println!("hsl"); }
+      color::rgb(r, g, b) => { println!("rgb"); }
+      color::hsl(h, s, l) => { println!("hsl"); }  //~ ERROR no associated
     }
 }