about summary refs log tree commit diff
path: root/tests/coverage/overflow.rs
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2023-10-28 01:07:37 -0700
committerGitHub <noreply@github.com>2023-10-28 01:07:37 -0700
commit9f631d0c233790cd7aeef53f2e0409cc038c8ba4 (patch)
treef29e60d6537a1ccf6fbb15c842a034973cb8f28d /tests/coverage/overflow.rs
parentd87b5e47276a4a5e8fbf13d3acfb67e008938abd (diff)
parent6dbad236419075603a616e7b19f585a1a308cf56 (diff)
downloadrust-9f631d0c233790cd7aeef53f2e0409cc038c8ba4.tar.gz
rust-9f631d0c233790cd7aeef53f2e0409cc038c8ba4.zip
Rollup merge of #116945 - estebank:sealed-trait-impls, r=petrochenkov
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.
Diffstat (limited to 'tests/coverage/overflow.rs')
0 files changed, 0 insertions, 0 deletions