rust/tests/crashes/127033.rs

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

19 lines
311 B
Rust
Raw Normal View History

2024-09-01 22:28:23 +02:00
//@ known-bug: #127033
//@ edition: 2021
2024-09-01 22:28:23 +02:00
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() {}