mirror of https://github.com/rust-lang/rust
13 lines
339 B
Rust
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() {}
|