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 15:58:16 +08:00
#![feature(const_trait_impl)]
#[const_trait]
2021-07-10 15:58:16 +08:00
trait A {
#[const_trait] //~ ERROR attribute should be applied
fn foo(self);
2021-07-10 15:58:16 +08:00
}
#[const_trait] //~ ERROR attribute should be applied
2021-07-10 15:58:16 +08:00
fn main() {}