about summary refs log tree commit diff
path: root/src/test/ui/pub/pub-restricted-non-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pub/pub-restricted-non-path.rs')
-rw-r--r--src/test/ui/pub/pub-restricted-non-path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pub/pub-restricted-non-path.rs b/src/test/ui/pub/pub-restricted-non-path.rs
index 3f74285717a..11428b778ed 100644
--- a/src/test/ui/pub/pub-restricted-non-path.rs
+++ b/src/test/ui/pub/pub-restricted-non-path.rs
@@ -10,6 +10,6 @@
 
 #![feature(pub_restricted)]
 
-pub (.) fn afn() {}
+pub (.) fn afn() {} //~ ERROR expected identifier
 
 fn main() {}