diff options
Diffstat (limited to 'tests/ui/lifetimes/issue-97194.rs')
-rw-r--r-- | tests/ui/lifetimes/issue-97194.rs | 10 |
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 000000000..5f3560dbe --- /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() {} |