2022-10-03 19:35:03 -05:00
|
|
|
// run-pass
|
2023-07-05 22:10:11 -05:00
|
|
|
// revisions: current next
|
|
|
|
//[current] compile-flags: -C opt-level=0
|
2023-12-14 06:11:28 -06:00
|
|
|
//[next] compile-flags: -Znext-solver -C opt-level=0
|
2022-10-03 19:35:03 -05:00
|
|
|
|
|
|
|
#![feature(dyn_star)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
use std::fmt::Display;
|
|
|
|
|
|
|
|
fn make_dyn_star() -> dyn* Display {
|
|
|
|
Box::new(42) as dyn* Display
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = make_dyn_star();
|
|
|
|
|
|
|
|
println!("{x}");
|
|
|
|
}
|