Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
extern
/
extern-types-inherent-impl.rs
blob: fc98f55dc07bfba336c4ee71ccdd96024de9f267 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
// Test that inherent impls can be defined for extern types.
#![
feature
(
extern_types
)]
extern
{
type
A
;
}
impl
A
{
fn
foo
(&
self
)
{
}
}
fn
use_foo
(
x
:
&
A
)
{
x
.
foo
();
}
fn
main
()
{
}