fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `err` in this scope 2 --> $DIR/issue-103909.rs:5:12 3 | 4LL | if Err(err) = File::open("hello.txt") { 5 | ^^^ not found in this scope 6 | 7help: you might have meant to use pattern matching 8 | 9LL | if let Err(err) = File::open("hello.txt") { 10 | +++ 11 12error[E0308]: mismatched types 13 --> $DIR/issue-103909.rs:5:8 14 | 15LL | if Err(err) = File::open("hello.txt") { 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()` 17 | 18help: consider adding `let` 19 | 20LL | if let Err(err) = File::open("hello.txt") { 21 | +++ 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0308, E0425. 26For more information about an error, try `rustc --explain E0308`.