blob: 10e1e3ebd09a764886fdf66196baa3f98bfdec36 [file]
#![feature(rustc_attrs)]
// For better or worse, associated types are invariant, and hence we
// get an invariant result for `'a`.
#[rustc_dump_variances]
struct Foo<'a> { //~ ERROR ['a: o]
x: Box<dyn Fn(i32) -> &'a i32 + 'static>
}
fn main() {
}