Try lifting Session<Action = _>
bounds into impl
for better errors
#110
Labels
enhancement
New feature or request
Currently, the
Action
for methods onChan
s is restricted in thewhere
-clause of the methods themselves. This means that errors involving session type mismatches restate the full session type of the expected session in a way that can be hard to parse. It's possible that moving this bound upward to the enclosingimpl
block for each method would cause these errors to be easier to read. This change will require each method to be enclosed in its ownimpl
block.Upsides:
Downsides:
impl
blocksThe text was updated successfully, but these errors were encountered: