From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/try-trait/option-to-result.rs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/test/ui/try-trait/option-to-result.rs (limited to 'src/test/ui/try-trait/option-to-result.rs') diff --git a/src/test/ui/try-trait/option-to-result.rs b/src/test/ui/try-trait/option-to-result.rs deleted file mode 100644 index 45aaf361a..000000000 --- a/src/test/ui/try-trait/option-to-result.rs +++ /dev/null @@ -1,13 +0,0 @@ -fn main(){ } - -fn test_result() -> Result<(),()> { - let a:Option<()> = Some(()); - a?;//~ ERROR the `?` operator can only be used - Ok(()) -} - -fn test_option() -> Option{ - let a:Result = Ok(5); - a?;//~ ERROR the `?` operator can only be used - Some(5) -} -- cgit v1.2.3