diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/async-await/issue-74047.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/async-await/issue-74047.rs b/src/test/ui/async-await/issue-74047.rs new file mode 100644 index 000000000..2e4f3e675 --- /dev/null +++ b/src/test/ui/async-await/issue-74047.rs @@ -0,0 +1,17 @@ +// edition:2018 + +use std::convert::{TryFrom, TryInto}; +use std::io; + +pub struct MyStream; +pub struct OtherStream; + +pub async fn connect() -> io::Result<MyStream> { + let stream: MyStream = OtherStream.try_into()?; + Ok(stream) +} + +impl TryFrom<OtherStream> for MyStream {} +//~^ ERROR: missing + +fn main() {} |