]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / default-method-body-is-const-same-trait-ck.rs
index be2f3f6d6231e74c26c727104185f0bf7243c982..d798516ff70fd05608449ff0b7e0c44c39d624e7 100644 (file)
@@ -1,10 +1,9 @@
 #![feature(const_trait_impl)]
 
+#[const_trait]
 pub trait Tr {
-    #[default_method_body_is_const]
     fn a(&self) {}
 
-    #[default_method_body_is_const]
     fn b(&self) {
         ().a()
         //~^ ERROR the trait bound