mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
15 lines
207 B
Rust
15 lines
207 B
Rust
// run-pass
|
|
#![feature(dyn_star)]
|
|
#![allow(unused, incomplete_features)]
|
|
|
|
use std::fmt::Debug;
|
|
|
|
fn make_dyn_star() {
|
|
let i = 42usize;
|
|
let dyn_i: dyn* Debug = i;
|
|
}
|
|
|
|
fn main() {
|
|
make_dyn_star();
|
|
}
|