1 error[E0277]: the type `[{integer}]` cannot be indexed by `u8`
2 --> $DIR/indexing-requires-a-uint.rs:6:5
5 | ^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
7 = help: the trait `SliceIndex<[{integer}]>` is not implemented for `u8`
8 = note: required because of the requirements on the impl of `Index<u8>` for `[{integer}]`
10 error[E0308]: mismatched types
11 --> $DIR/indexing-requires-a-uint.rs:12:18
13 LL | bar::<isize>(i); // i should not be re-coerced back to an isize
14 | ^ expected `isize`, found `usize`
16 help: you can convert an `usize` to `isize` and panic if the converted value wouldn't fit
18 LL | bar::<isize>(i.try_into().unwrap()); // i should not be re-coerced back to an isize
19 | ^^^^^^^^^^^^^^^^^^^^^
21 error: aborting due to 2 previous errors
23 Some errors have detailed explanations: E0277, E0308.
24 For more information about an error, try `rustc --explain E0277`.