1 The address of temporary value was taken.
3 Erroneous code example:
6 # #![feature(raw_ref_op)]
8 let ptr = &raw const 2; // error!
12 In this example, `2` is destroyed right after the assignment, which means that
13 `ptr` now points to an unavailable location.
15 To avoid this error, first bind the temporary to a named local variable:
18 # #![feature(raw_ref_op)]
21 let ptr = &raw const val; // ok!