]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs
do not suggest a placeholder to const and static without a type
[rust.git] / src / test / ui / typeck / do-not-suggest-placeholder-to-const-static-without-type.rs
1 trait Foo {
2     const A; //~ ERROR missing type for `const` item
3     static B;
4     //~^ ERROR associated `static` items are not allowed
5     //~| ERROR missing type for `static` item
6 }
7
8 fn main() {}