rust/tests/ui/rfcs/rfc-2632-const-trait-impl/attr-misuse.rs

11 lines
200 B
Rust

#![feature(const_trait_impl)]
#[const_trait]
trait A {
#[const_trait] //~ ERROR attribute should be applied
fn foo(self);
}
#[const_trait] //~ ERROR attribute should be applied
fn main() {}