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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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