]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/qualified-path-params.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / qualified-path-params.rs
index 86873022f0ff10b666941c3cd86cdefcac106ffa..9034e24a6fee03fab57aa7f722658c8a72b806f5 100644 (file)
@@ -27,7 +27,8 @@ impl S {
 
 fn main() {
     match 10 {
-        <S as Tr>::A::f::<u8> => {} //~ ERROR associated items in match patterns must be constants
+        <S as Tr>::A::f::<u8> => {}
+        //~^ ERROR `Tr::A::f<u8>` does not name a unit variant, unit struct or a constant
         0 ... <S as Tr>::A::f::<u8> => {} //~ ERROR only char and numeric types are allowed in range
     }
 }