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

When encountering sealed traits, point types that implement it #116945

Merged
merged 1 commit into from
Oct 28, 2023

Commits on Oct 27, 2023

  1. When encountering sealed traits, point types that implement it

    ```
    error[E0277]: the trait bound `S: d::Hidden` is not satisfied
      --> $DIR/sealed-trait-local.rs:53:20
       |
    LL | impl c::Sealed for S {}
       |                    ^ the trait `d::Hidden` is not implemented for `S`
       |
    note: required by a bound in `c::Sealed`
      --> $DIR/sealed-trait-local.rs:17:23
       |
    LL |     pub trait Sealed: self::d::Hidden {
       |                       ^^^^^^^^^^^^^^^ required by this bound in `Sealed`
       = note: `Sealed` is a "sealed trait", because to implement it you also need to implement `c::d::Hidden`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it
       = help: the following types implement the trait:
                - c::X
                - c::Y
    ```
    
    The last `help` is new.
    estebank committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    6dbad23 View commit details
    Browse the repository at this point in the history