]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/slice-issue-87994.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / slice-issue-87994.stderr
1 error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
2   --> $DIR/slice-issue-87994.rs:3:12
3    |
4 LL |   for _ in v[1..] {
5    |            ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]`
6    |
7    = note: the trait bound `[i32]: IntoIterator` is not satisfied
8    = note: required for `[i32]` to implement `IntoIterator`
9 help: consider borrowing here
10    |
11 LL |   for _ in &v[1..] {
12    |            +
13 LL |   for _ in &mut v[1..] {
14    |            ++++
15
16 error[E0277]: `[i32]` is not an iterator
17   --> $DIR/slice-issue-87994.rs:3:12
18    |
19 LL |   for _ in v[1..] {
20    |            ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]`
21    |
22    = note: the trait bound `[i32]: IntoIterator` is not satisfied
23    = note: required for `[i32]` to implement `IntoIterator`
24 help: consider borrowing here
25    |
26 LL |   for _ in &v[1..] {
27    |            +
28 LL |   for _ in &mut v[1..] {
29    |            ++++
30
31 error[E0277]: the size for values of type `[K]` cannot be known at compilation time
32   --> $DIR/slice-issue-87994.rs:11:13
33    |
34 LL |   for i2 in v2[1..] {
35    |             ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]`
36    |
37    = note: the trait bound `[K]: IntoIterator` is not satisfied
38    = note: required for `[K]` to implement `IntoIterator`
39 help: consider borrowing here
40    |
41 LL |   for i2 in &v2[1..] {
42    |             +
43 LL |   for i2 in &mut v2[1..] {
44    |             ++++
45
46 error[E0277]: `[K]` is not an iterator
47   --> $DIR/slice-issue-87994.rs:11:13
48    |
49 LL |   for i2 in v2[1..] {
50    |             ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]`
51    |
52    = note: the trait bound `[K]: IntoIterator` is not satisfied
53    = note: required for `[K]` to implement `IntoIterator`
54 help: consider borrowing here
55    |
56 LL |   for i2 in &v2[1..] {
57    |             +
58 LL |   for i2 in &mut v2[1..] {
59    |             ++++
60
61 error: aborting due to 4 previous errors
62
63 For more information about this error, try `rustc --explain E0277`.