E0023: invalid stack limit

View source

meta stack_limit(bytes: N) sets the stack budget of a verb.

meta stack_limit(bytes: N) sets the stack budget of a verb. ADR-0103 fixes the form: one parameter named bytes, whose value is a positive u32 literal with the suffix, such as 2048u32. The parser rejects a value of zero, a value without the suffix, another parameter name, and a second parameter. The message gives the reason.

Example

actus
meta stack_limit(bytes: 0u32)
verb main() {
}

Fix

Write a positive u32 literal.

actus
meta stack_limit(bytes: 2048u32)
verb main() {
}
toml
[package]
name = "example"
version = "0.1.0"
edition = "alpha"
entry = "main"

[build]
target = "x86_64-unknown-linux-gnu"
profile = "debug"
runtime = "std"

Run actus explain E0023 in your terminal to read this entry offline. Browse Lexer & parser or all error codes.