about summary refs log tree commit diff
path: root/tests/ui/lifetimes/issue-97194.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/issue-97194.rs')
-rw-r--r--tests/ui/lifetimes/issue-97194.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/issue-97194.rs b/tests/ui/lifetimes/issue-97194.rs
new file mode 100644
index 00000000000..5f3560dbe94
--- /dev/null
+++ b/tests/ui/lifetimes/issue-97194.rs
@@ -0,0 +1,10 @@
+extern "C" {
+    fn bget(&self, index: [usize; Self::DIM]) -> bool {
+        //~^ ERROR incorrect function inside `extern` block
+        //~| ERROR `self` parameter is only allowed in associated functions
+        //~| ERROR failed to resolve: `Self`
+        type T<'a> = &'a str;
+    }
+}
+
+fn main() {}