2016-04-26 12:51:14 -05:00
|
|
|
pub struct S(pub u8);
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
pub fn hey() -> u8 { 24 }
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait X {
|
|
|
|
fn hoy(&self) -> u8 { 25 }
|
2015-03-18 16:05:24 -05:00
|
|
|
}
|
2016-04-26 12:51:14 -05:00
|
|
|
|
|
|
|
impl X for S {}
|
|
|
|
|
|
|
|
pub enum E {
|
|
|
|
U(u8)
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn regular_fn() -> u8 { 12 }
|