aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/not_raw_ref_op.rs
blob: f55f1846fabab1da2d6141998dc17b87e2dc514e (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-frust-compile-until=lowering" }
pub struct Toto {
    u: usize,
}

pub fn test(raw: Toto) {
    // Not raw ref op syntax, raw keyword is weak.
    let _c = &raw;
}