Skip to content

Instantly share code, notes, and snippets.

@arielb1
Created July 12, 2017 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arielb1/48dc6f06681168ff8258254cbef149ea to your computer and use it in GitHub Desktop.
Save arielb1/48dc6f06681168ff8258254cbef149ea to your computer and use it in GitHub Desktop.
struct Foo {}
let foo: Foo;
let a: &'a mut &'aa mut Foo;
let b: &'b mut &'bb mut Foo;
let c: &'c mut &'cc mut Foo;
block START {
goto X;
}
block X {
b = &'b mut *a;
goto END;
}
block END {
*a = &'foo mut foo;
use(b);
}
assert X/1 in 'b;
assert b live at END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment