Files
rust/tests/ui/methods/issues/account-for-shadowed-bindings-issue-123558.rs

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

8 lines
125 B
Rust
Raw Normal View History

fn main() {
let x = Some(3);
let y = vec![1, 2];
if let Some(y) = x {
y.push(y); //~ ERROR E0599
}
}