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
Seems like the captures are being read from a slightly offset location
#![feature(unboxed_closures)]
fn main() {
let (a, b) = (1u32, 2u32);
println!("{} {}", a, b)
let mut closure = |&mut: c: u32| println!("{} {} {}", a, b, c);
closure.call((3,));
}
Output:
1 2
2 32575 3
(the argument is necessary to bypass #16168 and not using overloaded calls to get past #16166)
The text was updated successfully, but these errors were encountered:
Seems like the captures are being read from a slightly offset location
Output:
(the argument is necessary to bypass #16168 and not using overloaded calls to get past #16166)
The text was updated successfully, but these errors were encountered: