fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
712 B19 linesraw
1error[E0620]: cast to unsized type: `&{integer}` as `dyn std::marker::Send`
2  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:2:5
3   |
4LL |     &1 as dyn Send;
5   |     ^^^^^^--------
6   |           |
7   |           help: try casting to a reference instead: `&dyn Send`
8
9error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `dyn std::marker::Send`
10  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
11   |
12LL |     Box::new(1) as dyn Send;
13   |     ^^^^^^^^^^^^^^^--------
14   |                    |
15   |                    help: try casting to a `Box` instead: `Box<dyn Send>`
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0620`.