-
Notifications
You must be signed in to change notification settings - Fork 294
Cannot take address of a temporary #1514
Copy link
Copy link
Closed
Description
Currently when translating json-c and zstd we are producing code that doesn't compile because it's attempting to take the address of a temporary:
json-c: cargo.transpile(tests/json-c/cargo.transpile.gen.sh)...... FAIL
error[E0745]: cannot take address of a temporary
--> src/json_object.rs:731:24
|
731 | &raw const ::core::mem::transmute::<
| ________________________^
732 | | [u8; 58],
733 | | [::core::ffi::c_char; 58],
734 | | >(*b"struct json_object *json_object_get(struct json_object *)\0")
| |______________________________________________________________________________^ temporary value
Note that this made it onto master because there is also a bug in CI that's causing CI to not report when tests fail.
cc @Rua
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels