#![feature(inherent_associated_types, non_lifetime_binders, type_alias_impl_trait)] #![allow(incomplete_features)] struct Lexer(T); impl Lexer { type Cursor = (); } type X = impl for Fn() -> Lexer::Cursor; //~^ ERROR: unconstrained opaque type fn main() {}