2022-10-04 00:35:03 +00:00
|
|
|
//@ run-pass
|
2023-07-06 03:10:11 +00:00
|
|
|
//@ revisions: current next
|
2024-03-11 01:18:41 +00:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-07-06 03:10:11 +00:00
|
|
|
//@[current] compile-flags: -C opt-level=0
|
2023-12-14 12:11:28 +00:00
|
|
|
//@[next] compile-flags: -Znext-solver -C opt-level=0
|
2022-10-04 00:35:03 +00: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}");
|
|
|
|
}
|