diff options
Diffstat (limited to 'src/test/ui/try-trait/option-to-result.rs')
| -rw-r--r-- | src/test/ui/try-trait/option-to-result.rs | 13 |
1 files changed, 0 insertions, 13 deletions
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 45aaf361a9c..00000000000 --- 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<i32>{ - let a:Result<i32, i32> = Ok(5); - a?;//~ ERROR the `?` operator can only be used - Some(5) -} |
