This is non-trivial, because the whole point of the scoped API is that...
// ...you can capture things from here
thread::scope(|s| {
// ..you *cannot* capture things from here
s.spawn(|| some_work());
});
And yet, they've made capturing s just work
¯\_(ツ)_/¯