1 // Test that slicing syntax gives errors if we have not implemented the trait.
7 &x[..]; //~ ERROR cannot index into a value of type `Foo`
8 &x[Foo..]; //~ ERROR cannot index into a value of type `Foo`
9 &x[..Foo]; //~ ERROR cannot index into a value of type `Foo`
10 &x[Foo..Foo]; //~ ERROR cannot index into a value of type `Foo`