]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/associated-const-type-parameter-arrays-2.rs
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / compile-fail / associated-const-type-parameter-arrays-2.rs
index 7c3f7a1d574f99fea3df47f3b596ba8f4ad3a9e0..7fd9605ef2cdc6323b7177cd822272e9e1e748a0 100644 (file)
@@ -27,8 +27,6 @@ impl Foo for Def {
 pub fn test<A: Foo, B: Foo>() {
     let _array = [4; <A as Foo>::Y];
     //~^ ERROR cannot use an outer type parameter in this context [E0402]
-    //~| ERROR constant evaluation error [E0080]
-    //~| non-constant path in constant
 }
 
 fn main() {