]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/underscore_item_not_const.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / parser / underscore_item_not_const.rs
index 7b0d128f06f8a7c4151c5c364111a524506c17ed..c01ac4752e07561f0aa6de5f8e42784faa1e2007 100644 (file)
@@ -1,18 +1,4 @@
-// Test that various non-const items and associated consts do not permit `_` as a name.
-
-// Associated `const`s:
-
-pub trait A {
-    const _: () = (); //~ ERROR expected identifier, found reserved identifier `_`
-}
-impl A for () {
-    const _: () = (); //~ ERROR expected identifier, found reserved identifier `_`
-}
-impl dyn A {
-    const _: () = (); //~ ERROR expected identifier, found reserved identifier `_`
-}
-
-// Other kinds of items:
+// Test that various non-const items do not syntactically permit `_` as a name.
 
 static _: () = (); //~ ERROR expected identifier, found reserved identifier `_`
 struct _(); //~ ERROR expected identifier, found reserved identifier `_`