1 error[E0277]: the trait bound `Option<&str>: AsRef<Path>` is not satisfied
2 --> $DIR/issue-72442.rs:12:36
4 LL | let mut f = File::open(path.to_str())?;
5 | ---------- ^^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `Option<&str>`
7 | required by a bound introduced by this call
9 note: required by a bound in `File::open`
10 --> $SRC_DIR/std/src/fs.rs:LL:COL
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0277`.