|
1 | 1 | error[E0277]: the trait bound `Struct: TraitA` is not satisfied
|
2 |
| - --> $DIR/false-sealed-traits-note.rs:11:24 |
| 2 | + --> $DIR/false-sealed-traits-note.rs:12:24 |
3 | 3 | |
|
4 | 4 | LL | impl inner::TraitB for Struct {}
|
5 | 5 | | ^^^^^^ the trait `TraitA` is not implemented for `Struct`
|
6 | 6 | |
|
7 | 7 | help: this trait has no implementations, consider adding one
|
8 |
| - --> $DIR/false-sealed-traits-note.rs:4:5 |
| 8 | + --> $DIR/false-sealed-traits-note.rs:5:5 |
9 | 9 | |
|
10 | 10 | LL | pub trait TraitA {}
|
11 | 11 | | ^^^^^^^^^^^^^^^^
|
12 | 12 | note: required by a bound in `TraitB`
|
13 |
| - --> $DIR/false-sealed-traits-note.rs:6:23 |
| 13 | + --> $DIR/false-sealed-traits-note.rs:7:23 |
14 | 14 | |
|
15 | 15 | LL | pub trait TraitB: TraitA {}
|
16 | 16 | | ^^^^^^ required by this bound in `TraitB`
|
17 | 17 |
|
18 |
| -error: aborting due to 1 previous error |
| 18 | +error[E0277]: the trait bound `C: A` is not satisfied |
| 19 | + --> $DIR/false-sealed-traits-note.rs:20:16 |
| 20 | + | |
| 21 | +LL | impl B for C {} |
| 22 | + | ^ the trait `A` is not implemented for `C` |
| 23 | + | |
| 24 | +help: this trait has no implementations, consider adding one |
| 25 | + --> $DIR/false-sealed-traits-note.rs:16:5 |
| 26 | + | |
| 27 | +LL | pub trait A {} |
| 28 | + | ^^^^^^^^^^^ |
| 29 | +note: required by a bound in `B` |
| 30 | + --> $DIR/false-sealed-traits-note.rs:17:18 |
| 31 | + | |
| 32 | +LL | pub trait B: A {} |
| 33 | + | ^ required by this bound in `B` |
| 34 | + |
| 35 | +error: aborting due to 2 previous errors |
19 | 36 |
|
20 | 37 | For more information about this error, try `rustc --explain E0277`.
|
0 commit comments