summaryrefslogtreecommitdiffstats
path: root/tests/ui/dyn-star/dyn-to-rigid.rs
blob: e80ee15902eefc235be734bdcd21edfde534aab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(dyn_star)]
#![allow(incomplete_features)]

trait Tr {}

fn f(x: dyn* Tr) -> usize {
    x as usize
    //~^ ERROR casting `(dyn* Tr + 'static)` as `usize` is invalid
}

fn main() {}