| #![feature(no_core)] | |
| #![no_core] | |
| #![feature(lang_items)] | |
| #[lang = "sized"] | |
| pub trait Sized {} | |
| trait A { | |
| fn a() -> i32 { | |
| 123 | |
| } | |
| } | |
| trait B: A { | |
| fn b() -> i32 { | |
| Self::a() + 456 | |
| } | |
| } | |
| struct S; | |
| impl A for S {} | |
| impl B for S {} | |
| fn main() { | |
| let a; | |
| a = S::a(); | |
| let b; | |
| b = S::b(); | |
| } |