mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:06:20 +00:00
12 lines
194 B
Rust
12 lines
194 B
Rust
#![feature(dyn_star)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Tr {}
|
|
|
|
fn f(x: dyn* Tr) -> usize {
|
|
x as usize
|
|
//~^ ERROR non-primitive cast: `(dyn* Tr + 'static)` as `usize`
|
|
}
|
|
|
|
fn main() {}
|