You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[is_variant]enumEnum{A,B,}fntest(a:u32) -> (res:Enum)ensures(match res {Enum::A => a <= 10,Enum::B => a > 10,// FAILS}){Enum::B}
results in this error message, which points to the wrong branch of the match, while it should just point to the entire match, I think:
error: postcondition not satisfied
--> test.rs:24:8
|
22 | Enum::A => a <= 10,
| ------- failed this postcondition
23 | Enum::B => a > 10, // FAILS
24 | }) {
| ________^
25 | |
26 | | Enum::B
27 | | }
| |_^ at the end of the function body
results in this error message, which points to the wrong branch of the
match
, while it should just point to the entire match, I think:Originally found by @matthias-brun.
The text was updated successfully, but these errors were encountered: