Skip to content

V0112: string bound exceeded

Strings carry a static upper bound on their token count (str<=N). An expression whose bound is larger than the declared bound cannot be stored there. Increase the declared bound or shorten the expression.

fn f() -> str<=3 { return "far too long" }
error[V0112]: string may be up to 12 tokens, but at most 3 are allowed
--> example.veer:1:27
|
1 | fn f() -> str<=3 { return "far too long" }
| ^^^^^^^^^^^^^^
= help: run `veer explain V0112` for details