Skip to content

Commit

Permalink
Rollup merge of #97937 - TaKO8Ki:fix-typo-in-hrtb-just-for-static, r=…
Browse files Browse the repository at this point in the history
…Dylan-DPC

Fix a typo in `test/ui/hrtb/hrtb-just-for-static.rs`

closes #97934
  • Loading branch information
JohnTitor committed Jun 10, 2022
2 parents c2355a6 + a0985fc commit 9d25bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/hrtb/hrtb-just-for-static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn give_static() {
want_hrtb::<StaticInt>() //~ 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>()
Expand Down

0 comments on commit 9d25bc3

Please sign in to comment.