]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issue-72442.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / async-await / issue-72442.stderr
1 error[E0277]: the trait bound `Option<&str>: AsRef<Path>` is not satisfied
2 --> $DIR/issue-72442.rs:12:36
3 |
4 LL | 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 |
9 note: required by a bound in `File::open`
10 --> $SRC_DIR/std/src/fs.rs:LL:COL
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.