blob: a97e58c62b0fdfa1786790e8c0b195cfc5c31175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// { dg-options "-fsyntax-only" }
#![feature(raw_ref_op)]
pub struct Toto {
u: usize,
}
pub fn test(mut toto: Toto) {
let _a = &raw mut toto.u;
let _b = &raw const toto.u;
}
|