]> git.lizzy.rs Git - rust.git/blob - src/test/ui/slice-2.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / slice-2.stderr
1 error[E0608]: cannot index into a value of type `Foo`
2   --> $DIR/slice-2.rs:17:6
3    |
4 LL |     &x[..]; //~ ERROR cannot index into a value of type `Foo`
5    |      ^^^^^
6
7 error[E0608]: cannot index into a value of type `Foo`
8   --> $DIR/slice-2.rs:18:6
9    |
10 LL |     &x[Foo..]; //~ ERROR cannot index into a value of type `Foo`
11    |      ^^^^^^^^
12
13 error[E0608]: cannot index into a value of type `Foo`
14   --> $DIR/slice-2.rs:19:6
15    |
16 LL |     &x[..Foo]; //~ ERROR cannot index into a value of type `Foo`
17    |      ^^^^^^^^
18
19 error[E0608]: cannot index into a value of type `Foo`
20   --> $DIR/slice-2.rs:20:6
21    |
22 LL |     &x[Foo..Foo]; //~ ERROR cannot index into a value of type `Foo`
23    |      ^^^^^^^^^^^
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0608`.