rust/tests/crashes/130967.rs

14 lines
227 B
Rust
Raw Normal View History

2024-10-09 08:34:45 -05:00
//@ known-bug: #130967
trait Producer {
type Produced;
fn make_one() -> Self::Produced;
}
impl<E: ?Sized> Producer for () {
type Produced = Option<E>;
fn make_one() -> Self::Produced {
loop {}
}
}