diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-10-19 16:34:41 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-10-27 17:40:52 +0000 |
| commit | 6dbad236419075603a616e7b19f585a1a308cf56 (patch) | |
| tree | d8501d9a5247134f67811711084fd28f3cda829f /tests/coverage/overflow.rs | |
| parent | 9d6d5d48948945debca5a693f6030246f7bb2baf (diff) | |
| download | rust-6dbad236419075603a616e7b19f585a1a308cf56.tar.gz rust-6dbad236419075603a616e7b19f585a1a308cf56.zip | |
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
