blob: 1b285f219dcbcb7619fb8e788ed9872b33b90b44 [file] [log] [blame]
// build-pass (FIXME(62277): could be check-pass?)
struct WithDrop;
impl Drop for WithDrop {
fn drop(&mut self) {}
}
fn consume(x: (&mut (), WithDrop)) -> &mut () { x.0 }
fn main() {}