]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-72442.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / async-await / issue-72442.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `Option<&str>: AsRef<Path>` is not satisfied
f9f354fc
XL
2 --> $DIR/issue-72442.rs:12:36
3 |
4LL | let mut f = File::open(path.to_str())?;
1b1a35ee 5 | ^^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `Option<&str>`
f9f354fc 6 |
3dfed10e 7 ::: $SRC_DIR/std/src/fs.rs:LL:COL
f9f354fc
XL
8 |
9LL | pub fn open<P: AsRef<Path>>(path: P) -> io::Result<File> {
1b1a35ee 10 | ----------- required by this bound in `File::open`
f9f354fc
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.