diff options
Diffstat (limited to 'tests/ui/async-await/issue-74047.rs')
| -rw-r--r-- | tests/ui/async-await/issue-74047.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-74047.rs b/tests/ui/async-await/issue-74047.rs new file mode 100644 index 00000000000..2e4f3e675c3 --- /dev/null +++ b/tests/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() {} |
