mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-29 06:59:48 +00:00
12 lines
187 B
Rust
12 lines
187 B
Rust
// unit-test: DataflowConstProp
|
|
|
|
struct S(i32);
|
|
|
|
// EMIT_MIR struct.main.DataflowConstProp.diff
|
|
fn main() {
|
|
let mut s = S(1);
|
|
let a = s.0 + 2;
|
|
s.0 = 3;
|
|
let b = a + s.0;
|
|
}
|