2018-08-08 12:28:26 +00:00
|
|
|
error[E0308]: mismatched types
|
2019-05-28 18:46:13 +00:00
|
|
|
--> $DIR/cross-borrow-trait.rs:10:26
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | let _y: &dyn Trait = x;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ---------- ^ expected `&dyn Trait`, found `Box<dyn Trait>`
|
2021-09-30 01:22:17 +00:00
|
|
|
| |
|
2019-11-19 05:00:24 +00:00
|
|
|
| expected due to this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected reference `&dyn Trait`
|
2020-09-02 07:40:56 +00:00
|
|
|
found struct `Box<dyn Trait>`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|