]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32389.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-32389.rs
1 // run-pass
2 fn foo<T>() -> T { loop {} }
3
4 fn test() {
5     let ref mut a: &mut dyn FnMut((i8,), i16) = foo();
6     a((0,), 0);
7 }
8
9 fn main() {
10     let _ = test;
11 }