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 53cbc45 commit 6959b8aCopy full SHA for 6959b8a
build.rs
@@ -18,6 +18,7 @@ fn main() {
18
19
ac.emit_expression_cfg("1u32.reverse_bits()", "has_reverse_bits");
20
ac.emit_expression_cfg("1u32.trailing_ones()", "has_leading_trailing_ones");
21
+ ac.emit_expression_cfg("{ let mut x = 1; x += &2; }", "has_int_assignop_ref");
22
23
autocfg::rerun_path("build.rs");
24
}
src/lib.rs
@@ -624,6 +624,7 @@ fn check_numassign_ops() {
624
assert_eq!(compute(1, 2), 1)
625
626
627
+#[cfg(has_int_assignop_ref)]
628
#[test]
629
fn check_numassignref_ops() {
630
fn compute<T: NumAssignRef + Copy>(mut x: T, y: &T) -> T {
0 commit comments