]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/associated-const-type-parameter-arrays.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / test / compile-fail / associated-const-type-parameter-arrays.rs
index 3d3b795b2291a095241b5a94b59dd9575a07d231..ddf16a2278e5bd140cca704c6992e27dafb09f8e 100644 (file)
@@ -25,7 +25,8 @@ impl Foo for Def {
 }
 
 pub fn test<A: Foo, B: Foo>() {
-    let _array: [u32; <A as Foo>::Y]; //~ error: the parameter type
+    let _array: [u32; <A as Foo>::Y];
+    //~^ ERROR the trait bound `A: Foo` is not satisfied
 }
 
 fn main() {