diff options
Diffstat (limited to 'src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs')
-rw-r--r-- | src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs b/src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs new file mode 100644 index 000000000..97e0b213f --- /dev/null +++ b/src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs @@ -0,0 +1,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() {} |