]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/method-attributes.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / method-attributes.rs
index db7440738da86ccaecfdd42f12ef817123890a80..c015244d520cee80fc484c3ffc7c75825a028d3c 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 // pp-exact - Make sure we print all the attributes
+#![allow(unused_attribute)]
 
 #[frobable]
 trait frobable {
@@ -22,12 +23,12 @@ trait frobable {
 impl frobable for int {
     #[frob_attr1]
     fn frob(&self) {
-        #[frob_attr2];
+        #![frob_attr2]
     }
 
     #[defrob_attr1]
     fn defrob(&self) {
-        #[defrob_attr2];
+        #![defrob_attr2]
     }
 }