You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing a public trait with a private super-trait, we now emit
a note that the missing bound is not going to be able to be satisfied,
and we explain the concept of a sealed trait.
error[E0277]: the trait bound `S: Hidden` is not satisfied
2
+
--> $DIR/sealed-trait-local.rs:17:20
3
+
|
4
+
LL | impl a::Sealed for S {}
5
+
| ^ the trait `Hidden` is not implemented for `S`
6
+
|
7
+
note: required by a bound in `Sealed`
8
+
--> $DIR/sealed-trait-local.rs:3:23
9
+
|
10
+
LL | pub trait Sealed: self::b::Hidden {
11
+
| ^^^^^^^^^^^^^^^ required by this bound in `Sealed`
12
+
= note: `Sealed` is a "sealed trait", because to implement it you also need to implelement `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
+
14
+
error: aborting due to previous error
15
+
16
+
For more information about this error, try `rustc --explain E0277`.
0 commit comments