]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/coherence-default-trait-impl.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / coherence-default-trait-impl.rs
index e6bf068156c2b037fcf4d99a987cfc8a2e6c9c74..9c26b8b05f259ce1e8c3aa03b62bce48a1a06ff5 100644 (file)
 
 trait MyTrait { fn foo() {} }
 
+#[allow(auto_impl)]
 impl MyTrait for .. {}
-//~^ ERROR redundant default implementations of trait `MyTrait`
+//~^ ERROR redundant auto implementations of trait `MyTrait`
 
+#[allow(auto_impl)]
 impl MyTrait for .. {}
 
 trait MySafeTrait {}
 
+#[allow(auto_impl)]
 unsafe impl MySafeTrait for .. {}
 //~^ ERROR implementing the trait `MySafeTrait` is not unsafe
 
 unsafe trait MyUnsafeTrait {}
 
+#[allow(auto_impl)]
 impl MyUnsafeTrait for .. {}
 //~^ ERROR the trait `MyUnsafeTrait` requires an `unsafe impl` declaration