mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
14 lines
155 B
Rust
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;
|