rust/tests/crashes/119694.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
198 B
Rust
Raw Normal View History

//@ 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);
}