S0150: invalid effect result binding
Generated from rellum-diagnostics/src/db.rs.
Explanation
The <- binding operator sequences an awaitable effect inside an effect body and binds its result before the body continues. It is not a pure local binding and it cannot bind ingress, request, or Unit-returning output effects.
Common causes
- using
<-outside an effect body - binding a pure function call with
<- - trying to bind
print!or a top-level request effect with<-
Canonical fixes
- use
=for pure local bindings
Before:
value <- parse(input)
After:
value = parse(input)
- use output effects as standalone calls
Before:
_ <- print!(value)
After:
print!(value)
Code example
value <- parse(input)