summaryrefslogtreecommitdiff
path: root/tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs
blob: 97e0b213f2e7913ab6923bb5c5aaabc88b36de03 (plain)
1
2
3
4
5
6
7
8
trait Foo {
    const A; //~ ERROR missing type for `const` item
    static B;
    //~^ ERROR associated `static` items are not allowed
    //~| ERROR missing type for `static` item
}

fn main() {}