summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs')
-rw-r--r--src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs b/src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs
new file mode 100644
index 000000000..c86a9f2fd
--- /dev/null
+++ b/src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs
@@ -0,0 +1,5 @@
+fn main() {
+}
+
+pub foo<'a>
+//~^ ERROR missing `fn` or `struct` for function or struct definition