|
LL | *val = 2; // this invalidates any raw ptrs `fun1` might have created.
| ^^^^^^^^
- = note: BACKTRACE:
+ = note: BACKTRACE (of the first span):
= note: inside `fun2` at $DIR/pointer_smuggling.rs:LL:CC
-note: inside `main` at $DIR/pointer_smuggling.rs:LL:CC
+note: inside `main`
--> $DIR/pointer_smuggling.rs:LL:CC
|
LL | fun2(); // if they now use a raw ptr they break our reference