// compile-flags: -Ztrait-solver=next // check-pass pub trait With { type F; } impl With for i32 { type F = fn(&str); } fn f(_: &str) {} fn main() { let _: V = V(f); pub struct V(::F); pub enum E3 { Var(::F), } let _: E3 = E3::Var(f); }