MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / make_y_negative

Function make_y_negative

tests/binary/mutable_borrow/src/main.rs:8–13  ·  view source on GitHub ↗

Function taking a mutable borrow of a Point field

(p_y: &mut i32)

Source from the content-addressed store, hash-verified

6
7#[derive(Copy, Clone)]
8struct RepeatPoint {
9 x: i32,
10 y: i32,
11}
12
13// Function taking a mutable borrow of a Point field
14fn make_y_negative(p_y: &mut i32) {
15 if *p_y > 0 {
16 *p_y = -(*p_y);

Callers 1

shift_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected