Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Jun 10, 2022
1 parent 9f7e997 commit a0985fc
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 @@ -28,7 +28,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 a0985fc

Please sign in to comment.