mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
8 lines
213 B
Rust
8 lines
213 B
Rust
use std::future::Future;
|
|
|
|
fn await_type_matching<T1, T2: Future<Output = T1>>(x: T2) -> T1 {
|
|
panic!(
|
|
"This function exists only in order to implement type inference for `.await` expressions."
|
|
);
|
|
}
|