about summary refs log tree commit diff
path: root/src/test/ui/pub/pub-restricted-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pub/pub-restricted-error.rs')
-rw-r--r--src/test/ui/pub/pub-restricted-error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/pub/pub-restricted-error.rs b/src/test/ui/pub/pub-restricted-error.rs
index 99af031899a..4822d01a591 100644
--- a/src/test/ui/pub/pub-restricted-error.rs
+++ b/src/test/ui/pub/pub-restricted-error.rs
@@ -13,7 +13,7 @@
 struct Bar(pub(()));
 
 struct Foo {
-    pub(crate) () foo: usize,
+    pub(crate) () foo: usize, //~ ERROR expected identifier
 }
 
-
+fn main() {}