]> git.lizzy.rs Git - rust.git/blob - tests/ui/foreign/issue-99276-same-type-lifetimes.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / foreign / issue-99276-same-type-lifetimes.rs
1 // Check that we do not ICE when structurally comparing types with lifetimes present.
2 // check-pass
3
4 pub struct Record<'a> {
5     pub args: &'a [(usize, &'a str)],
6 }
7
8 mod a {
9     extern "Rust" {
10         fn foo<'a, 'b>(record: &'a super::Record<'b>);
11
12         fn bar<'a, 'b>(record: &'a super::Record<'b>);
13     }
14 }
15
16 mod b {
17     extern "Rust" {
18         fn foo<'a, 'b>(record: &'a super::Record<'b>);
19
20         fn bar<'a, 'b>(record: &'a super::Record<'b>);
21     }
22 }
23
24 fn main() {}