@AstraKernel I guessed C, and as usual I guessed wrong :) Can't really come up with any justification for Rust doing what it does here.
When running in playground, it's very hit-and-miss if Y actually ends up printing "Kernel" or not. I guess there's a race condition between finishing the spawned task and exiting the process.

