blob: 573dd359bf2b0322ed16c9e705357d95acb7d9ab [file] [log] [blame]
// 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
//~^ ERROR: lifetime may not live long enough
fn main() {}