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