summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0005.rs
blob: f4730697e1843f226ec6a3998dd6b89725e9ef1a (plain)
1
2
3
4
fn main() {
    let x = Some(1);
    let Some(y) = x; //~ ERROR E0005
}