1 error: it looks like you're trying to convert an array to a tuple
2 --> $DIR/tuple_array_conversions.rs:10:13
4 LL | let x = (x[0], x[1]);
7 = help: use `.into()` instead, or `<(T0, T1, ..., Tn)>::from` if type annotations are needed
8 = note: `-D clippy::tuple-array-conversions` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::tuple_array_conversions)]`
11 error: it looks like you're trying to convert a tuple to an array
12 --> $DIR/tuple_array_conversions.rs:11:13
14 LL | let x = [x.0, x.1];
17 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
19 error: it looks like you're trying to convert a tuple to an array
20 --> $DIR/tuple_array_conversions.rs:16:53
22 LL | let v1: Vec<[u32; 2]> = t1.iter().map(|&(a, b)| [a, b]).collect();
25 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
27 error: it looks like you're trying to convert a tuple to an array
28 --> $DIR/tuple_array_conversions.rs:17:38
30 LL | t1.iter().for_each(|&(a, b)| _ = [a, b]);
33 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
35 error: it looks like you're trying to convert an array to a tuple
36 --> $DIR/tuple_array_conversions.rs:18:55
38 LL | let t2: Vec<(u32, u32)> = v1.iter().map(|&[a, b]| (a, b)).collect();
41 = help: use `.into()` instead, or `<(T0, T1, ..., Tn)>::from` if type annotations are needed
43 error: it looks like you're trying to convert a tuple to an array
44 --> $DIR/tuple_array_conversions.rs:19:38
46 LL | t1.iter().for_each(|&(a, b)| _ = [a, b]);
49 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
51 error: it looks like you're trying to convert a tuple to an array
52 --> $DIR/tuple_array_conversions.rs:57:22
54 LL | let _: &[f64] = &[a, b];
57 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
59 error: it looks like you're trying to convert an array to a tuple
60 --> $DIR/tuple_array_conversions.rs:60:5
65 = help: use `.into()` instead, or `<(T0, T1, ..., Tn)>::from` if type annotations are needed
67 error: it looks like you're trying to convert an array to a tuple
68 --> $DIR/tuple_array_conversions.rs:104:13
70 LL | let x = (x[0], x[1]);
73 = help: use `.into()` instead, or `<(T0, T1, ..., Tn)>::from` if type annotations are needed
75 error: it looks like you're trying to convert a tuple to an array
76 --> $DIR/tuple_array_conversions.rs:105:13
78 LL | let x = [x.0, x.1];
81 = help: use `.into()` instead, or `<[T; N]>::from` if type annotations are needed
83 error: aborting due to 10 previous errors