mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
17 lines
326 B
Rust
17 lines
326 B
Rust
// Fix for <https://github.com/rust-lang/rust/issues/125432>.
|
|
|
|
fn separate_arms() {
|
|
let mut x = None;
|
|
match x {
|
|
None => {
|
|
x = Some(0);
|
|
}
|
|
Some(right) => {
|
|
consume(right);
|
|
//~^ ERROR cannot find function `consume` in this scope
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|