summaryrefslogtreecommitdiffstats
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.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/pub/pub-restricted-non-path.rs b/src/test/ui/pub/pub-restricted-non-path.rs
new file mode 100644
index 000000000..bdad18dbe
--- /dev/null
+++ b/src/test/ui/pub/pub-restricted-non-path.rs
@@ -0,0 +1,5 @@
+#![feature(pub_restricted)]
+
+pub (.) fn afn() {} //~ ERROR expected identifier
+
+fn main() {}