summaryrefslogtreecommitdiffstats
path: root/src/test/ui/foreign/issue-99276-same-type-lifetimes.rs
blob: fce603c801f2488ccac02ed12b0c50616b9f22f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Check that we do not ICE when structurally comparing types with lifetimes present.
// check-pass

pub struct Record<'a> {
    pub args: &'a [(usize, &'a str)],
}

mod a {
    extern "Rust" {
        fn foo<'a, 'b>(record: &'a super::Record<'b>);

        fn bar<'a, 'b>(record: &'a super::Record<'b>);
    }
}

mod b {
    extern "Rust" {
        fn foo<'a, 'b>(record: &'a super::Record<'b>);

        fn bar<'a, 'b>(record: &'a super::Record<'b>);
    }
}

fn main() {}