diff options
Diffstat (limited to 'src/test/compile-fail/slice-2.rs')
| -rw-r--r-- | src/test/compile-fail/slice-2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/slice-2.rs b/src/test/compile-fail/slice-2.rs index 07162293565..99dc3e68c8f 100644 --- a/src/test/compile-fail/slice-2.rs +++ b/src/test/compile-fail/slice-2.rs @@ -14,7 +14,7 @@ struct Foo; fn main() { let x = Foo; - &x[]; //~ ERROR cannot index a value of type `Foo` + &x[..]; //~ ERROR cannot index a value of type `Foo` &x[Foo..]; //~ ERROR cannot index a value of type `Foo` &x[..Foo]; //~ ERROR cannot index a value of type `Foo` &x[Foo..Foo]; //~ ERROR cannot index a value of type `Foo` |
