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