rust/tests/ui/associated-inherent-types/issue-111879-0.rs

13 lines
339 B
Rust

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
// Check that we don't crash when printing inherent projections in diagnostics.
pub struct Carrier<'a>(&'a ());
impl<'a> Carrier<'a> {
pub type Focus<T> = &'a mut for<'b> fn(Carrier<'b>::Focus<i32>); //~ ERROR overflow evaluating associated type
}
fn main() {}