diff --git a/src/test/ui/impl-trait/bound-normalization-pass.rs b/src/test/ui/impl-trait/bound-normalization-pass.rs index 1c7e776a4798a..3fdd7c0ecb666 100644 --- a/src/test/ui/impl-trait/bound-normalization-pass.rs +++ b/src/test/ui/impl-trait/bound-normalization-pass.rs @@ -43,12 +43,18 @@ mod lifetimes { } /// Like above. - fn foo2_pass<'a, T: Trait<'a, Assoc=()> + 'a>() -> impl FooLike + 'a { + /// + /// FIXME(#51525) -- the shorter notation `T::Assoc` winds up referencing `'static` here + fn foo2_pass<'a, T: Trait<'a, Assoc=()> + 'a>( + ) -> impl FooLike>::Assoc> + 'a { Foo(()) } /// Normalization to type containing bound region. - fn foo2_pass2<'a, T: Trait<'a, Assoc=&'a ()> + 'a>() -> impl FooLike + 'a { + /// + /// FIXME(#51525) -- the shorter notation `T::Assoc` winds up referencing `'static` here + fn foo2_pass2<'a, T: Trait<'a, Assoc=&'a ()> + 'a>( + ) -> impl FooLike>::Assoc> + 'a { Foo(&()) } }