diff options
Diffstat (limited to 'src/test/ui/parser/assoc-const-underscore-semantic-fail.rs')
| -rw-r--r-- | src/test/ui/parser/assoc-const-underscore-semantic-fail.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/parser/assoc-const-underscore-semantic-fail.rs b/src/test/ui/parser/assoc-const-underscore-semantic-fail.rs deleted file mode 100644 index d37ce06c555..00000000000 --- a/src/test/ui/parser/assoc-const-underscore-semantic-fail.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Semantically, an associated constant cannot use `_` as a name. - -fn main() {} - -const _: () = { - pub trait A { - const _: () = (); //~ ERROR `const` items in this context need a name - } - impl A for () { - const _: () = (); //~ ERROR `const` items in this context need a name - //~^ ERROR const `_` is not a member of trait `A` - } - struct B; - impl B { - const _: () = (); //~ ERROR `const` items in this context need a name - } -}; |
