summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/regionck-2.rs
blob: 7a0b8b08300157083bedad04ab32402b2903e4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Regression test for issue #109299.

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]

struct Lexer<'d>(&'d ());

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

fn test(_: Lexer::Cursor) {} //~ ERROR mismatched types

fn main() {}