aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/raw_ref_op_invalid.rs
blob: 90e169f30f6b1f222614dafa205a8824fc343ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-fsyntax-only" }
#![feature(raw_ref_op)]

pub struct Toto {
    u: usize,
}

pub fn test(mut toto: Toto) {
    let _c = &raw toto.u; //{ dg-error "expecting .;. but .identifier. found" "" { target *-*-* }  }
    //{ dg-excess-errors "Additional errors for parent items" { target *-*-* } }

}