summary refs log tree commit diff
path: root/src/test/ui/issues/issue-47703-tuple.rs
blob: 850771cffd0cfb1f627e7924aa51b646f1000424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-pass
#![allow(dead_code)]
#![feature(nll)]

struct WithDrop;

impl Drop for WithDrop {
    fn drop(&mut self) {}
}

fn consume(x: (&mut (), WithDrop)) -> &mut () { x.0 }

fn main() {}