summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/sealed-traits/sealed-trait-local.stderr
blob: 5f8076fc84d0ea95c4299c3f6d5f3d28951c3efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: the trait bound `S: Hidden` is not satisfied
  --> $DIR/sealed-trait-local.rs:17:20
   |
LL | impl a::Sealed for S {}
   |                    ^ the trait `Hidden` is not implemented for `S`
   |
note: required by a bound in `Sealed`
  --> $DIR/sealed-trait-local.rs:3:23
   |
LL |     pub trait Sealed: self::b::Hidden {
   |                       ^^^^^^^^^^^^^^^ required by this bound in `Sealed`
   = 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

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.