mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Implement await expression using SatisfiesConstraint module
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
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."
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user