summaryrefslogtreecommitdiffstats
path: root/tests/ui/dyn-star/make-dyn-star.rs
blob: e5255a64ba119992b5956705ede4b698d7f5ea7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run-pass
#![feature(dyn_star)]
#![allow(incomplete_features)]

use std::fmt::Debug;

fn make_dyn_star(i: usize) {
    let _dyn_i: dyn* Debug = i;
}

fn make_dyn_star_explicit(i: usize) {
    let _dyn_i: dyn* Debug = i as dyn* Debug;
}

fn main() {
    make_dyn_star(42);
    make_dyn_star_explicit(42);
}