rust/tests/ui/traits/alias/auxiliary/greeter.rs
2023-01-11 09:32:08 +00:00

14 lines
155 B
Rust

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