]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lint/redundant-semicolon/item-stmt-semi.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / lint / redundant-semicolon / item-stmt-semi.rs
index 4592bc31a39769cabd0fa86892ce296c66a8c0fd..8c79630b7fd2cb5fb9776ae49f8be6843b63e894 100644 (file)
@@ -1,10 +1,6 @@
-// check-pass
-// This test should stop compiling
-// we decide to enable this lint for item statements.
-
 #![deny(redundant_semicolons)]
 
 fn main() {
-    fn inner() {};
-    struct Bar {};
+    fn inner() {}; //~ ERROR unnecessary
+    struct Bar {}; //~ ERROR unnecessary
 }