Spot the bug in the match pattern

from Pattern matching
Rust 1.98 intermediate 4 min 1 issue to find

Find why same_as returns true for every value.

Rust
fn same_as(value: u32, expected: u32) -> bool {
    match value {
        expected => true,
        _ => false,
    }
}
Open in playground
Report an error