1 // revisions: migrate nll
2 //[nll]compile-flags: -Z borrowck=mir
4 // Since we are testing nll (and migration) explicitly as a separate
5 // revisions, don't worry about the --compare-mode=nll on this test.
7 // ignore-compare-mode-nll
10 //[migrate] check-fail
12 #![feature(generic_associated_types)]
20 impl<T> Foo<T> for () {
27 let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
28 //[migrate]~^ the parameter type `T` may not live long enough