struct Struct(T); impl Struct { const CONST: fn() = || { struct _Obligation where T:; //~ ERROR can't use generic parameters from outer function }; } fn main() {}