Skip to content

Commit

Permalink
Add 84434
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Apr 23, 2021
1 parent 0615aeb commit e185c3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ices/84434.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![crate_type = "lib"]
use std::path::Path;
struct A {
pub func: fn(check: bool, a: &Path, b: Option<&Path>),
}
const MY_A: A = A {
func: |check, a, b| {
if check {
let _ = ();
} else if let Some(parent) = b.and_then(|p| p.parent()) {
let _ = ();
}
},
};

0 comments on commit e185c3c

Please sign in to comment.