Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
extern
/
extern-types-distinct-types.rs
blob: 4da049b7882128a5b0bee8807b85de87e3787c40 [
file
] [
log
] [
blame
]
#![
feature
(
extern_types
)]
extern
"C"
{
type
A
;
type
B
;
}
fn
foo
(
r
:
&
A
)
->
&
B
{
r
//~ ERROR mismatched types
}
fn
main
()
{}