blob: 601671f71aec7db657459e0ecfb8f5016ed2690e (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0745]: cannot take address of a temporary
--> $DIR/raw-ptr-temp-const.rs:3:55
|
LL | const CONST_RAW: *const Vec<i32> = std::ptr::addr_of!(Vec::new());
| ^^^^^^^^^^ temporary value
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0745`.
|