1
Fork 0

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
This commit is contained in:
Yuki Okushi 2022-06-10 17:22:33 +09:00 committed by GitHub
commit 9d25bc3744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>()