mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
18 lines
189 B
Rust
18 lines
189 B
Rust
pub struct S(pub u8);
|
|
|
|
impl S {
|
|
pub fn hey() -> u8 { 24 }
|
|
}
|
|
|
|
pub trait X {
|
|
fn hoy(&self) -> u8 { 25 }
|
|
}
|
|
|
|
impl X for S {}
|
|
|
|
pub enum E {
|
|
U(u8)
|
|
}
|
|
|
|
pub fn regular_fn() -> u8 { 12 }
|