We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3255f21 commit a806b0cCopy full SHA for a806b0c
mockall/tests/mock_refmut_arguments.rs
@@ -47,6 +47,6 @@ fn static_mut() {
47
.withf(|x| *x == 5)
48
.returning(|x| { *x = 42;} );
49
// Safe because mock leaves scope before x
50
- unsafe { mock.bar(mem::transmute::<&mut u32, &mut u32>(&mut x)); }
+ unsafe { mock.bar(mem::transmute::<&mut u32, &'static mut u32>(&mut x)); }
51
assert_eq!(x, 42);
52
}
0 commit comments