mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
18 lines
262 B
Rust
18 lines
262 B
Rust
use tests_build::tokio;
|
|
|
|
#[tokio::main]
|
|
async fn never() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[tokio::main]
|
|
async fn impl_trait() -> impl Iterator<Item = impl core::fmt::Debug> {
|
|
[()].into_iter()
|
|
}
|
|
|
|
fn main() {
|
|
if impl_trait().count() == 10 {
|
|
never();
|
|
}
|
|
}
|