diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-47703-tuple.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-47703-tuple.rs b/src/test/ui/issues/issue-47703-tuple.rs new file mode 100644 index 000000000..bad187ead --- /dev/null +++ b/src/test/ui/issues/issue-47703-tuple.rs @@ -0,0 +1,11 @@ +// check-pass + +struct WithDrop; + +impl Drop for WithDrop { + fn drop(&mut self) {} +} + +fn consume(x: (&mut (), WithDrop)) -> &mut () { x.0 } + +fn main() {} |