fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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