1 error[E0308]: mismatched types
2 --> $DIR/bad-type-in-vec-push.rs:11:17
5 | ------ here the type of `vector` is inferred to be `Vec<_>`
6 LL | result.push(vector);
7 | ---- ^^^^^^ expected integer, found struct `Vec`
9 | arguments to this method are incorrect
11 = note: expected type `{integer}`
13 note: associated function defined here
14 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
16 error[E0308]: mismatched types
17 --> $DIR/bad-type-in-vec-push.rs:18:12
20 | ---- ^^ expected integer, found `&str`
22 | arguments to this method are incorrect
24 note: associated function defined here
25 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0308`.