summary refs log tree commit diff
path: root/src/test/ui/cast-to-unsized-trait-object-suggestion.stderr
blob: 67c33740f19695d772211396bb5b6ddbc23150ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0620]: cast to unsized type: `&{integer}` as `std::marker::Send`
  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:12:5
   |
LL |     &1 as Send; //~ ERROR cast to unsized
   |     ^^^^^^----
   |           |
   |           help: try casting to a reference instead: `&Send`

error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `std::marker::Send`
  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:13:5
   |
LL |     Box::new(1) as Send; //~ ERROR cast to unsized
   |     ^^^^^^^^^^^^^^^----
   |                    |
   |                    help: try casting to a `Box` instead: `Box<Send>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0620`.