]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-to-unsized-trait-object-suggestion.rs
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / test / ui / cast / cast-to-unsized-trait-object-suggestion.rs
1 fn main() {
2     &1 as dyn Send; //~ ERROR cast to unsized
3     Box::new(1) as dyn Send; //~ ERROR cast to unsized
4 }