mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 13:19:18 +00:00
macro vetcor
This commit is contained in:
parent
ca20efc751
commit
b42b85e923
@ -3,7 +3,7 @@
|
||||
// You can put the expression for the second element where ??? is so that the test passes.
|
||||
// Execute `rustlings hint primitive_types6` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
|
||||
#[test]
|
||||
fn indexing_tuple() {
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
fn array_and_vec() -> ([i32; 4], Vec<i32>) {
|
||||
let a = [10, 20, 30, 40]; // a plain array
|
||||
let v = // TODO: declare your vector here with the macro for vectors
|
||||
let v = vec![10, 20, 30, 40];// TODO: declare your vector here with the macro for vectors
|
||||
|
||||
(a, v)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user