We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn spawn2<@T>(x: T, f: fn(T)) { f(x); } fn main() { fn foo<~T>(x: T) { log_err x; } spawn2::<@int>(@10, foo); }
spawn2 is passing a shared kind to a function that only takes unique kinds.