]> git.proxmox.com Git - rustc.git/blame - src/test/ui/cross/cross-borrow-trait.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / cross / cross-borrow-trait.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
dc9dc135 2 --> $DIR/cross-borrow-trait.rs:10:26
b7449926 3 |
dc9dc135 4LL | 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
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0308`.