rust/tests/ui/dyn-star/dyn-star-to-dyn.rs

10 lines
226 B
Rust
Raw Normal View History

2023-01-06 02:47:35 -06:00
// build-pass
#![feature(dyn_star)]
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
fn main() {
let x: dyn* Send = &();
let x = Box::new(x) as Box<dyn Send>;
}