Rust: Improve type inference for closures and function traits

This commit is contained in:
Simon Friis Vindum
2026-01-15 12:16:51 +01:00
parent 196f6e1931
commit dabc5d54c9
6 changed files with 121 additions and 61 deletions

View File

@@ -3,4 +3,4 @@
use std::future::Future;
fn mention_dyn_future<T>(f: &dyn Future<Output = T>) {}
fn mention_dyn_fn_once<F>(f: &dyn FnOnce() -> F) {}
fn mention_dyn_fn_once<F>(f: &dyn Fn() -> F) {}