2023-06-01 22:26:14 -05:00
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 06:11:28 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-06-01 22:26:14 -05:00
|
|
|
|
|
|
|
fn changer<'a>(mut things: Box<dyn Iterator<Item=&'a mut u8>>) {
|
|
|
|
for item in *things { *item = 0 }
|
2024-10-14 12:04:10 -05:00
|
|
|
//~^ ERROR `dyn Iterator<Item = &'a mut u8>` is not an iterator
|
2023-06-01 22:26:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|