]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/dst-raw-slice.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / dst-raw-slice.rs
1 // Test bounds checking for DST raw slices
2 // error-pattern:index out of bounds
3
4 fn main() {
5     let a: *const [_] = &[1, 2, 3];
6     unsafe {
7         let _b = (*a)[3];
8     }
9 }