summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/attr-misuse.rs
blob: 01ac74feff74dfe25fe6a573319715e2f3cefbf2 (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {}