2018-05-09 08:54:45 -05:00
|
|
|
// ignore-test validation_op is disabled
|
|
|
|
|
2017-08-07 19:39:09 -05:00
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
|
|
|
mod safe {
|
|
|
|
pub fn safe(x: &mut i32, y: &mut i32) {} //~ ERROR: in conflict with lock WriteLock
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = &mut 0 as *mut _;
|
|
|
|
unsafe { safe::safe(&mut *x, &mut *x) };
|
|
|
|
}
|