|
1 |
| -error[E0277]: the trait bound `S: Hidden` is not satisfied |
2 |
| - --> $DIR/sealed-trait-local.rs:17:20 |
| 1 | +error[E0277]: the trait bound `S: b::Hidden` is not satisfied |
| 2 | + --> $DIR/sealed-trait-local.rs:52:20 |
3 | 3 | |
|
4 | 4 | LL | impl a::Sealed for S {}
|
5 |
| - | ^ the trait `Hidden` is not implemented for `S` |
| 5 | + | ^ the trait `b::Hidden` is not implemented for `S` |
6 | 6 | |
|
7 |
| -note: required by a bound in `Sealed` |
| 7 | +note: required by a bound in `a::Sealed` |
8 | 8 | --> $DIR/sealed-trait-local.rs:3:23
|
9 | 9 | |
|
10 | 10 | LL | pub trait Sealed: self::b::Hidden {
|
11 | 11 | | ^^^^^^^^^^^^^^^ required by this bound in `Sealed`
|
12 | 12 | = note: `Sealed` is a "sealed trait", because to implement it you also need to implement `a::b::Hidden`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it
|
| 13 | + = help: the following type implements the trait: |
| 14 | + a::X |
13 | 15 |
|
14 |
| -error: aborting due to previous error |
| 16 | +error[E0277]: the trait bound `S: d::Hidden` is not satisfied |
| 17 | + --> $DIR/sealed-trait-local.rs:53:20 |
| 18 | + | |
| 19 | +LL | impl c::Sealed for S {} |
| 20 | + | ^ the trait `d::Hidden` is not implemented for `S` |
| 21 | + | |
| 22 | +note: required by a bound in `c::Sealed` |
| 23 | + --> $DIR/sealed-trait-local.rs:17:23 |
| 24 | + | |
| 25 | +LL | pub trait Sealed: self::d::Hidden { |
| 26 | + | ^^^^^^^^^^^^^^^ required by this bound in `Sealed` |
| 27 | + = 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 |
| 28 | + = help: the following types implement the trait: |
| 29 | + c::X |
| 30 | + c::Y |
| 31 | + |
| 32 | +error[E0277]: the trait bound `S: f::Hidden` is not satisfied |
| 33 | + --> $DIR/sealed-trait-local.rs:54:20 |
| 34 | + | |
| 35 | +LL | impl e::Sealed for S {} |
| 36 | + | ^ the trait `f::Hidden` is not implemented for `S` |
| 37 | + | |
| 38 | +note: required by a bound in `e::Sealed` |
| 39 | + --> $DIR/sealed-trait-local.rs:35:23 |
| 40 | + | |
| 41 | +LL | pub trait Sealed: self::f::Hidden { |
| 42 | + | ^^^^^^^^^^^^^^^ required by this bound in `Sealed` |
| 43 | + = note: `Sealed` is a "sealed trait", because to implement it you also need to implement `e::f::Hidden`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it |
| 44 | + = help: the following types implement the trait: |
| 45 | + e::X |
| 46 | + e::Y |
| 47 | + |
| 48 | +error: aborting due to 3 previous errors |
15 | 49 |
|
16 | 50 | For more information about this error, try `rustc --explain E0277`.
|
0 commit comments