Fixed aesthetics and test
This commit is contained in:
parent
4ac11becc2
commit
65b04fa068
2 changed files with 12 additions and 6 deletions
|
@ -14,10 +14,16 @@ impl Foo {
|
|||
fn bar(&mut self) -> bool { true }
|
||||
}
|
||||
|
||||
/* This causes E0301. By fixing issue #41272 this problem should vanish */
|
||||
fn iflet_issue(foo: &mut Foo) {
|
||||
fn error(foo: &mut Foo) {
|
||||
if let Some(_) = Some(true) {
|
||||
} else if foo.bar() {}
|
||||
}
|
||||
|
||||
fn ok(foo: &mut Foo) {
|
||||
if let Some(_) = Some(true) {
|
||||
} else {
|
||||
if foo.bar() {}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue