summaryrefslogtreecommitdiffstats
path: root/src/test/ui/dyn-star/error.rs
blob: 33eff80a5fe70276a472ad42a4345ea00075a002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(dyn_star)]
#![allow(incomplete_features)]

use std::fmt::Debug;

trait Foo {}

fn make_dyn_star() {
    let i = 42;
    let dyn_i: dyn* Foo = i as dyn* Foo; //~ ERROR trait bound `{integer}: Foo` is not satisfied
}

fn main() {}