Open
Description
Aim
fn main() {
let x = unsafe { foo() };
}
fn foo() -> Enum {
Enum::A
}
enum Enum { A }
Expected Behavior
The program to either work or issue an error explaining that enums cannot cross the constrained <-> unconstrained boundary.
Bug
error: Cannot pass a mutable reference from a unconstrained runtime to an constrained runtime
┌─ src/main.nr:6:22
│
6 │ let x = unsafe { foo() };
│ -----
│
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
📋 Backlog
Activity