diff --git a/src/test/ui/hrtb/hrtb-just-for-static.rs b/src/test/ui/hrtb/hrtb-just-for-static.rs index ffafdce2a6c83..8fb4218f8a409 100644 --- a/src/test/ui/hrtb/hrtb-just-for-static.rs +++ b/src/test/ui/hrtb/hrtb-just-for-static.rs @@ -24,7 +24,7 @@ fn give_static() { want_hrtb::() //~ ERROR } -// AnyInt implements Foo<&'a isize> for any 'a, so it is a match. +// &'a u32 only implements Foo<&'a isize> for specific 'a, so it is an error. impl<'a> Foo<&'a isize> for &'a u32 { } fn give_some<'a>() { want_hrtb::<&'a u32>()