1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[lang = "sized"] pub trait Sized {} struct Bar; trait Foo { fn bar(&self) {} } pub fn outer() { impl Foo for Bar {} } fn main() { Bar.bar(); }