summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/double-pointer.rs
blob: 54d34db4a50f495e1b734ae885098203c7daf8d8 (plain)
1
2
3
4
5
6
7
fn main() {
    let x: i32 = 5;
    let ptr: *const i32 = &x;
    let dptr: **const i32 = &ptr;
    //~^ ERROR expected `mut` or `const` keyword in raw pointer type
    //~| HELP add `mut` or `const` here
}