diff options
Diffstat (limited to 'tests/ui/structs-enums/issue-50731.rs')
-rw-r--r-- | tests/ui/structs-enums/issue-50731.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/issue-50731.rs b/tests/ui/structs-enums/issue-50731.rs new file mode 100644 index 000000000..209c1e127 --- /dev/null +++ b/tests/ui/structs-enums/issue-50731.rs @@ -0,0 +1,6 @@ +// run-pass +enum Void {} +fn foo(_: Result<(Void, u32), (Void, String)>) {} +fn main() { + let _: fn(_) = foo; +} |