]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46771.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-46771.rs
1 fn main() {
2     struct Foo;
3     (1 .. 2).find(|_| Foo(0) == 0); //~ ERROR expected function, found `Foo`
4 }