]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cross/cross-borrow-trait.stderr
Extend invalid floating point literal suffix suggestion
[rust.git] / src / test / ui / cross / cross-borrow-trait.stderr
1 error[E0308]: mismatched types
2   --> $DIR/cross-borrow-trait.rs:10:26
3    |
4 LL |     let _y: &dyn Trait = x;
5    |             ----------   ^ expected `&dyn Trait`, found struct `Box`
6    |             |
7    |             expected due to this
8    |
9    = note: expected reference `&dyn Trait`
10                  found struct `Box<dyn Trait>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.