//@ check-pass pub trait Foo { fn foo(self) -> u32; } impl Foo for T { fn foo(self) -> u32 { fn bar() { loop {} } bar:: as u32 } } fn main() {}