2022-06-28 21:02:30 +00:00
|
|
|
// run-pass
|
2022-04-13 23:38:16 +00:00
|
|
|
#![feature(dyn_star)]
|
2022-08-30 19:44:00 +00:00
|
|
|
#![allow(incomplete_features)]
|
2022-04-13 23:38:16 +00:00
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
|
2022-06-28 21:02:30 +00:00
|
|
|
fn make_dyn_star(i: usize) {
|
2022-09-14 23:20:03 +00:00
|
|
|
let _dyn_i: dyn* Debug = i;
|
2022-04-13 23:38:16 +00:00
|
|
|
}
|
|
|
|
|
2022-10-14 04:55:07 +00:00
|
|
|
fn make_dyn_star_explicit(i: usize) {
|
|
|
|
let _dyn_i: dyn* Debug = i as dyn* Debug;
|
|
|
|
}
|
|
|
|
|
2022-06-28 21:02:30 +00:00
|
|
|
fn main() {
|
|
|
|
make_dyn_star(42);
|
2022-10-14 04:55:07 +00:00
|
|
|
make_dyn_star_explicit(42);
|
2022-06-28 21:02:30 +00:00
|
|
|
}
|