summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/cast-to-unsized-trait-object-suggestion.stderr
blob: 3b5b8ea69c195e4430b4b65a7131b03355a0ee53 (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 `dyn Send`
  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:2:5
   |
LL |     &1 as dyn Send;
   |     ^^^^^^--------
   |           |
   |           help: try casting to a reference instead: `&dyn Send`

error[E0620]: cast to unsized type: `Box<{integer}>` as `dyn Send`
  --> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
   |
LL |     Box::new(1) as dyn Send;
   |     ^^^^^^^^^^^^^^^--------
   |                    |
   |                    help: you can cast to a `Box` instead: `Box<dyn Send>`

error: aborting due to 2 previous errors

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