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

Refer to types using the local identifier #44642

Closed
wants to merge 4 commits into from

Commits on Sep 17, 2017

  1. Fix docstring typo

    estebank committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    71b82c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78ccfd6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2efc1f8 View commit details
    Browse the repository at this point in the history
  4. Refer to types using the local identifier

    On type errors, refer to types using the locally available name when
    they have been imported into scope instead of the fully qualified path.
    
    ```
    error[E0308]: mismatched types
     --> file.rs:7:24
      |
    7 |     let y: Option<X> = Ok(());
      |                        ^^^^^^ expected enum `std::option::Option`, found enum `std::result::Result`
      |
      = note: expected type `Option<X>`
                 found type `Result<(), _>`
      = help: here are some functions which might fulfill your needs:
              - .err()
              - .unwrap_err()
    ```
    estebank committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    6877688 View commit details
    Browse the repository at this point in the history