|
| 1 | +error[E0412]: cannot find type `Color` in this scope |
| 2 | + --> $DIR/trait-selection-ice-84727.rs:5:17 |
| 3 | + | |
| 4 | +LL | foreground: Color<Fg>, |
| 5 | + | ^^^^^ not found in this scope |
| 6 | + |
| 7 | +error[E0412]: cannot find type `Color` in this scope |
| 8 | + --> $DIR/trait-selection-ice-84727.rs:7:17 |
| 9 | + | |
| 10 | +LL | background: Color<Bg>, |
| 11 | + | ^^^^^ not found in this scope |
| 12 | + |
| 13 | +error[E0412]: cannot find type `Color` in this scope |
| 14 | + --> $DIR/trait-selection-ice-84727.rs:18:16 |
| 15 | + | |
| 16 | +LL | Self: Over<Color<BottomBg>, Cell<NewFg>>, |
| 17 | + | ^^^^^ not found in this scope |
| 18 | + |
| 19 | +error[E0412]: cannot find type `NewBg` in this scope |
| 20 | + --> $DIR/trait-selection-ice-84727.rs:32:27 |
| 21 | + | |
| 22 | +LL | fn over(self) -> Cell<NewBg> { |
| 23 | + | ^^^^^ not found in this scope |
| 24 | + | |
| 25 | +help: you might be missing a type parameter |
| 26 | + | |
| 27 | +LL | impl<'b, TopFg, TopBg, BottomFg, BottomBg, NewBg> Over<&Cell<BottomFg, BottomBg>, ()> |
| 28 | + | +++++++ |
| 29 | + |
| 30 | +error[E0308]: mismatched types |
| 31 | + --> $DIR/trait-selection-ice-84727.rs:21:22 |
| 32 | + | |
| 33 | +LL | fn over(self) -> Cell<NewFg> { |
| 34 | + | ---- ^^^^^^^^^^^ expected `Cell<NewFg>`, found `()` |
| 35 | + | | |
| 36 | + | implicitly returns `()` as its body has no tail or `return` expression |
| 37 | +LL | |
| 38 | +LL | self.over(); |
| 39 | + | - help: remove this semicolon to return this value |
| 40 | + | |
| 41 | + = note: expected struct `Cell<NewFg>` |
| 42 | + found unit type `()` |
| 43 | + |
| 44 | +error: aborting due to 5 previous errors |
| 45 | + |
| 46 | +Some errors have detailed explanations: E0308, E0412. |
| 47 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments