]> git.lizzy.rs Git - rust.git/blob - tests/ui/extern/extern-types-distinct-types.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / extern / extern-types-distinct-types.rs
1 #![feature(extern_types)]
2
3 extern "C" {
4     type A;
5     type B;
6 }
7
8 fn foo(r: &A) -> &B {
9     r //~ ERROR mismatched types
10 }
11
12 fn main() {}