Debian Codegraph @

debian/missing-sources/proptest/tests/attr_macro.rs

raw
1 /// Regression for https://github.com/proptest-rs/proptest/issues/601
2 #[cfg(feature = "attr-macro")]
3 #[proptest::property_test]
4 fn attr_macro_does_not_clobber_mutability(mut x: i32, (mut y, _z): (i32, i32)) {
5 let _suppress_unused_warning = x == y;
6
7 x = 0;
8 y = 0;
9 assert_eq!(x, y);
10 }
11