mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 11:42:15 +00:00
19 lines
198 B
Rust
19 lines
198 B
Rust
//@ known-bug: #119694
|
|
#![feature(dyn_star)]
|
|
|
|
trait Trait {
|
|
fn foo(self);
|
|
}
|
|
|
|
impl Trait for usize {
|
|
fn foo(self) {}
|
|
}
|
|
|
|
fn bar(x: dyn* Trait) {
|
|
x.foo();
|
|
}
|
|
|
|
fn main() {
|
|
bar(0usize);
|
|
}
|