You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let res = returns_unit();
returns_result(res).unwrap();
println!("The result is {res:?}");
The suggestion of above code is
help: omit the `let` binding and replace variable usages with `()`
|
22 ~ returns_unit();
23 ~ returns_result(()).unwrap();
24 ~ println!("The result is {():?}");
But println!("The result is {():?}"); is not valid.