A function chooses at runtime between two capturing closure expressions and returns the c…

from Closures
Rust 1.98 intermediate 1 min

A function chooses at runtime between two capturing closure expressions and returns the chosen callback. Which return type directly supports this?

Report an error