summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/underscore_item_not_const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/underscore_item_not_const.rs')
-rw-r--r--src/test/ui/parser/underscore_item_not_const.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/parser/underscore_item_not_const.rs b/src/test/ui/parser/underscore_item_not_const.rs
deleted file mode 100644
index c01ac4752..000000000
--- a/src/test/ui/parser/underscore_item_not_const.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// 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 `_`
-enum _ {} //~ ERROR expected identifier, found reserved identifier `_`
-fn _() {} //~ ERROR expected identifier, found reserved identifier `_`
-mod _ {} //~ ERROR expected identifier, found reserved identifier `_`
-type _ = (); //~ ERROR expected identifier, found reserved identifier `_`
-use _; //~ ERROR expected identifier, found reserved identifier `_`
-use _ as g; //~ ERROR expected identifier, found reserved identifier `_`
-trait _ {} //~ ERROR expected identifier, found reserved identifier `_`
-trait _ = Copy; //~ ERROR expected identifier, found reserved identifier `_`
-macro_rules! _ { () => {} } //~ ERROR expected identifier, found reserved identifier `_`
-union _ { f: u8 } //~ ERROR expected one of `!` or `::`, found reserved identifier `_`
-
-fn main() {}