mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
12 lines
193 B
Rust
12 lines
193 B
Rust
#![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() {}
|