summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-97194.rs
blob: 5f3560dbe946edacfde1c25de35846bbfdf6e9d2 (plain)
1
2
3
4
5
6
7
8
9
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() {}