Exercise 22

This commit is contained in:
akshitgautam42 2023-11-12 12:18:47 +05:30
parent 729b76cc2e
commit aa30ca3d33

View File

@ -6,13 +6,13 @@
// Execute `rustlings hint primitive_types6` or use the `hint` watch subcommand
// for a hint.
// I AM NOT DONE
#[test]
fn indexing_tuple() {
let numbers = (1, 2, 3);
// Replace below ??? with the tuple indexing syntax.
let second = ???;
let second = numbers.1;
assert_eq!(2, second,
"This is not the 2nd number in the tuple!")