2023-06-01 22:26:14 -05:00
|
|
|
// revisions: current next
|
|
|
|
//[next] compile-flags: -Ztrait-solver=next
|
|
|
|
|
|
|
|
fn changer<'a>(mut things: Box<dyn Iterator<Item=&'a mut u8>>) {
|
|
|
|
for item in *things { *item = 0 }
|
|
|
|
//~^ ERROR the size for values of type
|
2023-06-23 11:26:22 -05:00
|
|
|
//[next]~^^ ERROR the type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed
|
2023-06-01 22:26:14 -05:00
|
|
|
//[next]~| ERROR the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|