2025-02-09 06:08:59 +00:00
|
|
|
error[E0804]: cannot add auto trait `Send` to dyn bound via pointer cast
|
|
|
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:4:5
|
2024-02-12 21:24:48 +00:00
|
|
|
|
|
|
|
|
|
LL | x as _
|
2025-02-09 06:08:59 +00:00
|
|
|
| ^^^^^^ unsupported cast
|
2024-02-12 21:24:48 +00:00
|
|
|
|
|
2025-02-09 06:08:59 +00:00
|
|
|
= note: this could allow UB elsewhere
|
|
|
|
|
= help: use `transmute` if you're sure this is sound
|
2024-02-12 21:24:48 +00:00
|
|
|
|
2025-02-09 06:08:59 +00:00
|
|
|
error[E0804]: cannot add auto traits `Send`, `Sync`, and `Unpin` to dyn bound via pointer cast
|
2024-07-04 16:46:00 +02:00
|
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:13:5
|
|
|
|
|
|
|
|
|
|
|
LL | x as _
|
2025-02-09 06:08:59 +00:00
|
|
|
| ^^^^^^ unsupported cast
|
2024-07-04 16:46:00 +02:00
|
|
|
|
|
2025-02-09 06:08:59 +00:00
|
|
|
= note: this could allow UB elsewhere
|
|
|
|
|
= help: use `transmute` if you're sure this is sound
|
2024-07-04 16:46:00 +02:00
|
|
|
|
2025-02-09 06:08:59 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2024-07-04 16:46:00 +02:00
|
|
|
|
2025-02-09 06:08:59 +00:00
|
|
|
For more information about this error, try `rustc --explain E0804`.
|