]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-74047.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-74047.rs
CommitLineData
3dfed10e
XL
1// edition:2018
2
3use std::convert::{TryFrom, TryInto};
4use std::io;
5
6pub struct MyStream;
7pub struct OtherStream;
8
9pub async fn connect() -> io::Result<MyStream> {
10 let stream: MyStream = OtherStream.try_into()?;
11 Ok(stream)
12}
13
14impl TryFrom<OtherStream> for MyStream {}
15//~^ ERROR: missing
16
17fn main() {}