mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
19 lines
327 B
Rust
19 lines
327 B
Rust
//@ known-bug: #127033
|
|
//@ compile-flags: --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() {}
|