//@ check-pass trait Foo { type T; fn foo() -> Box<::T>; } fn main() {}