summary refs log tree commit diff
path: root/tests/crashes/130967.rs
blob: 8a3aae72c20c5c4677edfde711980bf1f4c3ee9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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 {}
    }
}