rust/tests/ui/cast/cast-to-unsized-trait-objec...

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
}