rust/tests/ui/cast/cast-to-unsized-trait-object-suggestion.rs

5 lines
115 B
Rust
Raw Normal View History

2015-11-25 17:36:30 -06:00
fn main() {
2019-05-28 13:46:13 -05:00
&1 as dyn Send; //~ ERROR cast to unsized
Box::new(1) as dyn Send; //~ ERROR cast to unsized
2015-11-25 17:36:30 -06:00
}