summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-103909.rs
blob: 20b67cd102d7037c4a228d9dc613cbc2c8a6b7a2 (plain)
1
2
3
4
5
6
7
8
9
#![allow(unused_variables)]
use std::fs::File;

fn main() {
    if Err(err) = File::open("hello.txt") {
        //~^ ERROR: cannot find value `err` in this scope
        //~| ERROR: mismatched types
    }
}