rust/tests/crashes/114198-2.rs

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

16 lines
267 B
Rust
Raw Normal View History

2024-04-16 23:01:07 +00:00
//@ known-bug: #114198
//@ compile-flags: -Zprint-mono-items=eager
impl Trait for <Ty as Owner>::Struct {}
trait Trait {
fn test(&self) {}
}
enum Ty {}
trait Owner { type Struct: ?Sized; }
impl Owner for Ty {
type Struct = dyn Trait + Send;
}
fn main() {}