]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5239-1.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-5239-1.rs
1 // Regression test for issue #5239
2
3 fn main() {
4     let x = |ref x: isize| { x += 1; };
5     //~^ ERROR E0368
6 }