Skip to content

Commit 9d25bc3

Browse files
authoredJun 10, 2022
Rollup merge of #97937 - TaKO8Ki:fix-typo-in-hrtb-just-for-static, r=Dylan-DPC
Fix a typo in `test/ui/hrtb/hrtb-just-for-static.rs` closes #97934
2 parents c2355a6 + a0985fc commit 9d25bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/test/ui/hrtb/hrtb-just-for-static.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn give_static() {
2424
want_hrtb::<StaticInt>() //~ ERROR
2525
}
2626

27-
// AnyInt implements Foo<&'a isize> for any 'a, so it is a match.
27+
// &'a u32 only implements Foo<&'a isize> for specific 'a, so it is an error.
2828
impl<'a> Foo<&'a isize> for &'a u32 { }
2929
fn give_some<'a>() {
3030
want_hrtb::<&'a u32>()

0 commit comments

Comments
 (0)
Please sign in to comment.