1 error[E0308]: mismatched types
2 --> $DIR/cross-borrow-trait.rs:10:26
4 LL | let _y: &dyn Trait = x;
5 | ---------- ^ expected `&dyn Trait`, found struct `Box`
9 = note: expected reference `&dyn Trait`
10 found struct `Box<dyn Trait>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.