rust/tests/ui/rfc-2632-const-trait-impl/attr-misuse.rs
2023-01-11 09:32:08 +00:00

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() {}