rust/tests/ui/traits/alias/auxiliary/greeter.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
155 B
Rust
Raw Normal View History

#![feature(trait_alias)]
pub trait Hello {
fn hello(&self);
}
pub struct Hi;
impl Hello for Hi {
fn hello(&self) {}
}
pub trait Greet = Hello;