We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2355a6 + a0985fc commit 9d25bc3Copy full SHA for 9d25bc3
src/test/ui/hrtb/hrtb-just-for-static.rs
@@ -24,7 +24,7 @@ fn give_static() {
24
want_hrtb::<StaticInt>() //~ ERROR
25
}
26
27
-// 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.
28
impl<'a> Foo<&'a isize> for &'a u32 { }
29
fn give_some<'a>() {
30
want_hrtb::<&'a u32>()
0 commit comments