mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
10 lines
207 B
Rust
10 lines
207 B
Rust
|
#![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
|
||
|
}
|
||
|
}
|