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

11 lines
200 B
Rust
Raw Normal View History

2021-07-10 02:58:16 -05:00
#![feature(const_trait_impl)]
#[const_trait]
2021-07-10 02:58:16 -05:00
trait A {
#[const_trait] //~ ERROR attribute should be applied
fn foo(self);
2021-07-10 02:58:16 -05:00
}
#[const_trait] //~ ERROR attribute should be applied
2021-07-10 02:58:16 -05:00
fn main() {}