Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Oct 12, 2023
1 parent 9e69284 commit d9bdd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sema/mutability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'a> StateCheck<'a> {
"accesses value sent, which is only allowed for payable functions",
"access of value sent",
),
Access::None => unreachable!("declared access can't be lower than None"),
Access::None => unreachable!("desired access can't be None"),
};

let diagnostic = self
Expand Down

0 comments on commit d9bdd31

Please sign in to comment.