]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-5035.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-5035.rs
index a186a399a112c1f614ac16616b5c9d0a04e8ecf7..c2154e8a6c0b605ce78e135875aa19a2e414ecf9 100644 (file)
 
 trait I {}
 type K = I;
-//~^ NOTE: aliases cannot be used for traits
 impl K for isize {} //~ ERROR: `K` is not a trait
-//~| is not a trait
+                    //~| NOTE: not a trait
+                    //~| NOTE: aliases cannot be used for traits
+
+use ImportError; //~ ERROR unresolved
+impl ImportError for () {} // check that this is not an additional error (c.f. #35142)
+
 fn main() {}