summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/issue-109299-1.rs
blob: 6f95273116b78af569216574bb78c975cede43e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(inherent_associated_types, non_lifetime_binders, type_alias_impl_trait)]
#![allow(incomplete_features)]

struct Lexer<T>(T);

impl Lexer<i32> {
    type Cursor = ();
}

type X = impl for<T> Fn() -> Lexer<T>::Cursor; //~ ERROR associated type `Cursor` not found for `Lexer<T>` in the current scope

fn main() {}