about summary refs log tree commit diff
path: root/tests/crashes/127033.rs
blob: 52b880e4859b859e854fd824a852ca670f771b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ known-bug: #127033
//@ edition: 2021

pub trait RaftLogStorage {
    fn save_vote(vote: ()) -> impl std::future::Future + Send;
}

struct X;
impl RaftLogStorage for X {
    fn save_vote(vote: ()) -> impl std::future::Future {
        loop {}
        async {
            vote
        }
    }
}

fn main() {}