]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-74047.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / issue-74047.rs
1 // edition:2018
2
3 use std::convert::{TryFrom, TryInto};
4 use std::io;
5
6 pub struct MyStream;
7 pub struct OtherStream;
8
9 pub async fn connect() -> io::Result<MyStream> {
10     let stream: MyStream = OtherStream.try_into()?;
11     Ok(stream)
12 }
13
14 impl TryFrom<OtherStream> for MyStream {}
15 //~^ ERROR: missing
16
17 fn main() {}