blob: 2d28f516ab5a76236a9d431e231a1c4b7654c3d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::fmt::Debug;
fn make_dyn_star() {
let i = 42usize;
let dyn_i: dyn* Debug = i as dyn* Debug;
//~^ ERROR casting `usize` as `dyn* Debug` is invalid
//~| ERROR `dyn*` trait objects are experimental
//~| ERROR `dyn*` trait objects are experimental
}
fn main() {
make_dyn_star();
}
|