macros: fix wrong error messages (#4067)

This commit is contained in:
Fedorenko Dmitrij
2021-08-25 19:59:41 +02:00
committed by GitHub
parent 51f4f0594c
commit 80bda3bf5f
7 changed files with 56 additions and 38 deletions
@@ -0,0 +1,14 @@
use tests_build::tokio;
#[tokio::main]
async fn main() -> Result<(), ()> {
loop {
if !never() {
return Ok(());
}
}
}
fn never() -> bool {
std::time::Instant::now() > std::time::Instant::now()
}