]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast-to-unsized-trait-object-suggestion.stderr
Auto merge of #45013 - chrisvittal:mir_pretty_printing_pr, r=nikomatsakis
[rust.git] / src / test / ui / cast-to-unsized-trait-object-suggestion.stderr
1 error[E0620]: cast to unsized type: `&{integer}` as `std::marker::Send`
2   --> $DIR/cast-to-unsized-trait-object-suggestion.rs:12:5
3    |
4 12 |     &1 as Send;
5    |     ^^^^^^----
6    |           |
7    |           help: try casting to a reference instead: `&Send`
8
9 error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `std::marker::Send`
10   --> $DIR/cast-to-unsized-trait-object-suggestion.rs:13:5
11    |
12 13 |     Box::new(1) as Send;
13    |     ^^^^^^^^^^^^^^^----
14    |                    |
15    |                    help: try casting to a `Box` instead: `Box<Send>`
16
17 error: aborting due to 2 previous errors
18