mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
13 lines
138 B
Rust
13 lines
138 B
Rust
#![feature(extern_types)]
|
|
|
|
extern "C" {
|
|
type A;
|
|
type B;
|
|
}
|
|
|
|
fn foo(r: &A) -> &B {
|
|
r //~ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|