mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
11 lines
312 B
Rust
11 lines
312 B
Rust
//@ revisions: current next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
fn changer<'a>(mut things: Box<dyn Iterator<Item=&'a mut u8>>) {
|
|
for item in *things { *item = 0 }
|
|
//~^ ERROR `dyn Iterator<Item = &'a mut u8>` is not an iterator
|
|
}
|
|
|
|
fn main() {}
|