E0701: Intrinsic wrong arg count
| Code | Category | Stability |
|---|---|---|
E0701 | Intrinsic | Permanent |
Explanation
Each intrinsic declares an accepted argument count or range. Rue checks the number of supplied arguments against that arity contract before applying its type and behavior rules.
Likely cause
An argument is missing, an extra comma-separated argument was supplied, or the call was written for a different version of the intrinsic's signature.
Examples
Omit a required intrinsic argument
fn main() -> i32 {
@dbg();
0
}
Supply the declared argument count
fn main() -> i32 {
@dbg(42);
0
}