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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
208 B
Rust
Raw Permalink Normal View History

2022-06-28 16:02:30 -05:00
//@ run-pass
2022-08-29 14:02:03 -05:00
#![feature(dyn_star)]
2022-08-30 14:44:00 -05:00
#![allow(unused, incomplete_features)]
2022-06-28 16:02:30 -05:00
use std::fmt::Debug;
fn make_dyn_star() {
let i = 42usize;
2022-09-14 18:20:03 -05:00
let dyn_i: dyn* Debug = i;
2022-06-28 16:02:30 -05:00
}
fn main() {
make_dyn_star();
}