S0070: wrong number of effect arguments
Generated from rellum-diagnostics/src/db.rs.
Explanation
Built-in effects and effect wrappers have fixed arity. The compiler checks argument count before lowering so the runtime call receives exactly the values its ABI expects.
Common causes
- calling an effect with a missing argument
- passing an extra value to a zero-argument effect
- calling an effect wrapper with the wrong parameter count
Canonical fixes
- pass the exact number of arguments required by the effect
Before:
sleep!()
After:
sleep!(100)
- remove extra arguments
Before:
now!(1)
After:
now!()
Code example
sleep!()