mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Model async return types as dyn Future
This commit is contained in:
6
rust/tools/builtins/mentions.rs
Normal file
6
rust/tools/builtins/mentions.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
// Type mentions required by type inference
|
||||
|
||||
use std::future::Future;
|
||||
fn mention_dyn_future<T>(f: &dyn Future<Output = T>) {}
|
||||
|
||||
fn mention_dyn_fn_once<F>(f: &dyn FnOnce() -> F) {}
|
||||
Reference in New Issue
Block a user