Debian Codegraph @

gcc/testsuite/rust/compile/raw_ref_op_invalid.rs

raw
1 // { dg-options "-fsyntax-only" }
2 #![feature(raw_ref_op)]
3
4 pub struct Toto {
5 u: usize,
6 }
7
8 pub fn test(mut toto: Toto) {
9 let _c = &raw toto.u; //{ dg-error "expecting .;. but .identifier. found" "" { target *-*-* } }
10 //{ dg-excess-errors "Additional errors for parent items" { target *-*-* } }
11
12 }