Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in src/test/ui/hrtb/hrtb-just-for-static.rs #97934

Closed
lengyijun opened this issue Jun 10, 2022 · 0 comments · Fixed by #97937
Closed

typo in src/test/ui/hrtb/hrtb-just-for-static.rs #97934

lengyijun opened this issue Jun 10, 2022 · 0 comments · Fixed by #97937
Assignees

Comments

@lengyijun
Copy link
Contributor

// AnyInt implements Foo<&'a isize> for any 'a, so it is a match.   <- HERE, should not be AnyInt
impl<'a> Foo<&'a isize> for &'a u32 { }
fn give_some<'a>() {
    want_hrtb::<&'a u32>()
    //~^ ERROR lifetime may not live long enough
    //~| ERROR implementation of `Foo` is not general enough
}

@TaKO8Ki TaKO8Ki self-assigned this Jun 10, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Jun 10, 2022
…tatic, r=Dylan-DPC

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

closes rust-lang#97934
@bors bors closed this as completed in 9d25bc3 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants