mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 06:24:24 +00:00
fix a typo
This commit is contained in:
parent
9f7e997c8b
commit
a0985fc20c
@ -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>()
|
||||
|
Loading…
Reference in New Issue
Block a user