summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs')
-rw-r--r--src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs b/src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs
new file mode 100644
index 000000000..1ee8c84f1
--- /dev/null
+++ b/src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs
@@ -0,0 +1,6 @@
+pub bar<'a>(&self, _s: &'a usize) -> bool { true }
+//~^ ERROR missing `fn` for method definition
+
+fn main() {
+ bar(2);
+}