rust/tests/ui/did_you_mean/issue-103909.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
207 B
Rust
Raw Normal View History

#![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
}
}