Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
traits
/
alias
/
import-cross-crate.rs
blob: 868585cd09789f5dc097a760c2edbc422d584b0f [
file
] [
log
] [
blame
]
// run-pass
// aux-build:greeter.rs
#![
feature
(
trait_alias
)]
extern
crate greeter
;
// Import only the alias, not the real trait.
use
greeter
::{
Greet
,
Hi
};
fn
main
()
{
let
hi
=
Hi
;
hi
.
hello
();
// From `Hello`, via `Greet` alias.
}