diff options
Diffstat (limited to 'src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs')
-rw-r--r-- | src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs b/src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs deleted file mode 100644 index 2ab23b4d7..000000000 --- a/src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs +++ /dev/null @@ -1,16 +0,0 @@ -pub struct Request { - pub id: String, - pub arg: String, -} - -pub fn decode<T>() -> Result<Request, ()> { - (|| { - Ok(Request { - id: "hi".to_owned(), - arg: match Err(()) { - Ok(v) => v, - Err(e) => return Err(e) - }, - }) - })() -} |