blob: 65e7c90965b85acd2f16bdc895c632992fd91df8 [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.
}