You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub struct A { x: u32 }
pub impl A {
pub fn dump(self: Self) -> u32 { self.x }
}
pub fn main(a: A) -> u32 {
let to_dump = a.dump();
to_dump
}
This should typecheck, and it does if main instead directly returns a.dump() instead of binding to an intermediate. However, running interpreter_main gives a BytecodeEmitter could not find slot or binding for name error.
The text was updated successfully, but these errors were encountered:
Consider the following:
This should typecheck, and it does if main instead directly returns
a.dump()
instead of binding to an intermediate. However, runninginterpreter_main
gives aBytecodeEmitter could not find slot or binding for name
error.The text was updated successfully, but these errors were encountered: