summary refs log tree commit diff
path: root/tests/ui/dyn-star/error.rs
blob: 7288596f3fa8a897c9b4f00fbb9b98848e34675a (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; //~ ERROR trait bound `usize: Foo` is not satisfied
}

fn main() {}