summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/cast-to-unsized-trait-object-suggestion.rs
blob: 5342b595c7c5e9f1d2c7891e8fb59a4b7d968e06 (plain)
1
2
3
4
fn main() {
    &1 as dyn Send; //~ ERROR cast to unsized
    Box::new(1) as dyn Send; //~ ERROR cast to unsized
}