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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}