]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
dc9dc135 | 2 | --> $DIR/cross-borrow-trait.rs:10:26 |
b7449926 | 3 | | |
dc9dc135 | 4 | LL | let _y: &dyn Trait = x; |
60c5eb7d XL |
5 | | ---------- ^ |
6 | | | | | |
7 | | | expected `&dyn Trait`, found struct `std::boxed::Box` | |
8 | | | help: consider borrowing here: `&x` | |
9 | | expected due to this | |
b7449926 | 10 | | |
60c5eb7d XL |
11 | = note: expected reference `&dyn Trait` |
12 | found struct `std::boxed::Box<dyn Trait>` | |
b7449926 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0308`. |