summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-97193.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/issue-97193.rs')
-rw-r--r--tests/ui/lifetimes/issue-97193.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/issue-97193.rs b/tests/ui/lifetimes/issue-97193.rs
new file mode 100644
index 000000000..6c82c29dd
--- /dev/null
+++ b/tests/ui/lifetimes/issue-97193.rs
@@ -0,0 +1,9 @@
+extern "C" {
+ fn a(&mut self) {
+ //~^ ERROR incorrect function inside `extern` block
+ //~| ERROR `self` parameter is only allowed in associated functions
+ fn b(buf: &Self) {}
+ }
+}
+
+fn main() {}