]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47703-tuple.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-47703-tuple.rs
1 // check-pass
2
3 struct WithDrop;
4
5 impl Drop for WithDrop {
6     fn drop(&mut self) {}
7 }
8
9 fn consume(x: (&mut (), WithDrop)) -> &mut () { x.0 }
10
11 fn main() {}