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:
commit
9d25bc3744
1 changed files with 1 additions and 1 deletions
|
@ -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>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue