]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/feature-gate-optin-builtin-traits.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / feature-gate-optin-builtin-traits.rs
index 59d7473a741d6297f1d20c2d4633636a4a4cf1d6..4c5502cec18a851ff4c7d25cb6e07c17dab1f9ea 100644 (file)
@@ -17,8 +17,12 @@ trait DummyTrait {
     fn dummy(&self) {}
 }
 
+auto trait AutoDummyTrait {}
+//~^ ERROR auto traits are experimental and possibly buggy
+
+#[allow(auto_impl)]
 impl DummyTrait for .. {}
-//~^ ERROR default trait implementations are experimental and possibly buggy
+//~^ ERROR auto trait implementations are experimental and possibly buggy
 
 impl !DummyTrait for DummyStruct {}
 //~^ ERROR negative trait bounds are not yet fully implemented; use marker types for now