Compiling solution v0.1.0 (/tmp/d20211209-3212651-hebsm7/solution)
warning: variable `matrixData` should have a snake case name
--> src/lib.rs:21:17
|
21 | let mut matrixData : Vec<Vec<T>> = Vec::new();
| ^^^^^^^^^^ help: convert the identifier to snake case: `matrix_data`
|
= note: `#[warn(non_snake_case)]` on by default
warning: variable `currentVec` should have a snake case name
--> src/lib.rs:22:17
|
22 | let mut currentVec : Vec<T> = Vec::new();
| ^^^^^^^^^^ help: convert the identifier to snake case: `current_vec`
warning: `solution` (lib) generated 2 warnings
error[E0277]: can't compare `{integer}` with `&{integer}`
--> tests/solution_test.rs:11:5
|
11 | assert_eq!(matrix.by_row().collect::<Vec<_>>(), vec![&1, &2, &3, &4, &5, &6]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `{integer} == &{integer}`
|
= help: the trait `PartialEq<&{integer}>` is not implemented for `{integer}`
= note: required because of the requirements on the impl of `PartialEq<Vec<&{integer}>>` for `Vec<{integer}>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: can't compare `{integer}` with `&{integer}`
--> tests/solution_test.rs:12:5
|
12 | assert_eq!(matrix.by_col().collect::<Vec<_>>(), vec![&1, &3, &5, &2, &4, &6]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `{integer} == &{integer}`
|
= help: the trait `PartialEq<&{integer}>` is not implemented for `{integer}`
= note: required because of the requirements on the impl of `PartialEq<Vec<&{integer}>>` for `Vec<{integer}>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: can't compare `{integer}` with `&{integer}`
--> tests/solution_test.rs:21:5
|
21 | assert_eq!(matrix.by_row().collect::<Vec<_>>(), vec![&1, &2, &3, &4, &5, &6]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `{integer} == &{integer}`
|
= help: the trait `PartialEq<&{integer}>` is not implemented for `{integer}`
= note: required because of the requirements on the impl of `PartialEq<Vec<&{integer}>>` for `Vec<{integer}>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: can't compare `{integer}` with `&{integer}`
--> tests/solution_test.rs:22:5
|
22 | assert_eq!(matrix.by_col().collect::<Vec<_>>(), vec![&1, &4, &2, &5, &3, &6]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `{integer} == &{integer}`
|
= help: the trait `PartialEq<&{integer}>` is not implemented for `{integer}`
= note: required because of the requirements on the impl of `PartialEq<Vec<&{integer}>>` for `Vec<{integer}>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: can't compare `str` with `&str`
--> tests/solution_test.rs:32:5
|
32 | / assert_eq!(
33 | | matrix.by_row().collect::<Vec<_>>(),
34 | | vec![&"1", &"2", &"3", &"4", &"5", &"6", &"7", &"8", &"9"]
35 | | );
| |______^ no implementation for `str == &str`
|
= help: the trait `PartialEq<&str>` is not implemented for `str`
= note: required because of the requirements on the impl of `PartialEq<&&str>` for `&str`
= note: 1 redundant requirements hidden
= note: required because of the requirements on the impl of `PartialEq<Vec<&&str>>` for `Vec<&str>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: can't compare `str` with `&str`
--> tests/solution_test.rs:36:5
|
36 | / assert_eq!(
37 | | matrix.by_col().collect::<Vec<_>>(),
38 | | vec![&"1", &"4", &"7", &"2", &"5", &"8", &"3", &"6", &"9"]
39 | | );
| |______^ no implementation for `str == &str`
|
= help: the trait `PartialEq<&str>` is not implemented for `str`
= note: required because of the requirements on the impl of `PartialEq<&&str>` for `&str`
= note: 1 redundant requirements hidden
= note: required because of the requirements on the impl of `PartialEq<Vec<&&str>>` for `Vec<&str>`
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `solution` due to 6 previous errors