mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 15:02:19 +00: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;
|