diff --git a/ices/84434.rs b/ices/84434.rs new file mode 100644 index 00000000..5a7dd08c --- /dev/null +++ b/ices/84434.rs @@ -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 _ = (); + } + }, +};