rust/tests/ui/cast/cast-to-unsized-trait-object-suggestion.rs
2023-01-11 09:32:08 +00:00

5 lines
115 B
Rust

fn main() {
&1 as dyn Send; //~ ERROR cast to unsized
Box::new(1) as dyn Send; //~ ERROR cast to unsized
}