mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 00:53:04 +00:00
14 lines
227 B
Rust
14 lines
227 B
Rust
//@ 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 {}
|
|
}
|
|
}
|