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

{unknown} type information for url::Url::parse #4897

Closed
drguildo opened this issue Jun 15, 2020 · 3 comments
Closed

{unknown} type information for url::Url::parse #4897

drguildo opened this issue Jun 15, 2020 · 3 comments

Comments

@drguildo
Copy link

With version 2.1.1 of the url crate and the following code:

fn main() {
    use url::Url;
    let issue_list_url =
        Url::parse("https://github.com/rust-lang/rust/issues?labels=E-easy&state=open");
}

when I hover over Url::parse I get {unknown}.

@flodiebold
Copy link
Member

Does it work if you move the use statement outside the function?

@drguildo
Copy link
Author

@flodiebold Yes. If I move the use to the top level I get the expected type information and documentation.

@flodiebold
Copy link
Member

Then this is a duplicate of #1165.

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

No branches or pull requests

2 participants