1 error[E0608]: cannot index into a value of type `Foo`
2 --> $DIR/slice-2.rs:7:6
7 error[E0608]: cannot index into a value of type `Foo`
8 --> $DIR/slice-2.rs:8:6
13 error[E0608]: cannot index into a value of type `Foo`
14 --> $DIR/slice-2.rs:9:6
19 error[E0608]: cannot index into a value of type `Foo`
20 --> $DIR/slice-2.rs:10:6
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0608`.