To be fair. The idiomatic C# would be:
if(TrySomeOperationThatMightFail(out var value))
{
}
But even with that I often wish it was more like the Rust example