fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied 2 --> $DIR/issue-20605.rs:5:17 3 | 4LL | for item in *things { *item = 0 } 5 | ^^^^^^^ the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>` 6 7error[E0277]: the size for values of type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` cannot be known at compilation time 8 --> $DIR/issue-20605.rs:5:17 9 | 10LL | for item in *things { *item = 0 } 11 | ^^^^^^^ doesn't have a size known at compile-time 12 | 13 = help: the trait `Sized` is not implemented for `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` 14 = note: all local variables must have a statically known size 15 = help: unsized locals are gated as an unstable feature 16 17error: the type `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed 18 --> $DIR/issue-20605.rs:5:17 19 | 20LL | for item in *things { *item = 0 } 21 | ^^^^^^^ 22 23error[E0277]: `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not an iterator 24 --> $DIR/issue-20605.rs:5:17 25 | 26LL | for item in *things { *item = 0 } 27 | ^^^^^^^ `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not an iterator 28 | 29 = help: the trait `Iterator` is not implemented for `<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` 30 31error: the type `&mut <dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter` is not well-formed 32 --> $DIR/issue-20605.rs:5:17 33 | 34LL | for item in *things { *item = 0 } 35 | ^^^^^^^ 36 37error[E0277]: the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time 38 --> $DIR/issue-20605.rs:5:9 39 | 40LL | for item in *things { *item = 0 } 41 | ^^^^ doesn't have a size known at compile-time 42 | 43 = help: the trait `Sized` is not implemented for `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` 44 = note: all local variables must have a statically known size 45 = help: unsized locals are gated as an unstable feature 46 47error: the type `Option<<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item>` is not well-formed 48 --> $DIR/issue-20605.rs:5:17 49 | 50LL | for item in *things { *item = 0 } 51 | ^^^^^^^ 52 53error[E0277]: the size for values of type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be known at compilation time 54 --> $DIR/issue-20605.rs:5:5 55 | 56LL | for item in *things { *item = 0 } 57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 58 | 59 = help: the trait `Sized` is not implemented for `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` 60note: required by a bound in `None` 61 --> $SRC_DIR/core/src/option.rs:LL:COL 62 63error[E0614]: type `<<dyn Iterator<Item = &'a mut u8> as IntoIterator>::IntoIter as Iterator>::Item` cannot be dereferenced 64 --> $DIR/issue-20605.rs:5:27 65 | 66LL | for item in *things { *item = 0 } 67 | ^^^^^ 68 69error: aborting due to 9 previous errors 70 71Some errors have detailed explanations: E0277, E0614. 72For more information about an error, try `rustc --explain E0277`.