Open nishanthkarthik opened 2 months ago
The cast from an enum to its repr triggers this error.
use prusti_contracts::*; #[derive(Copy, Clone)] #[repr(u32)] enum T { A = 1, B = 2, } impl T { #[ensures(*self as u32 == result)] fn whoami(&self) -> u32 { *self as u32 } }
Follows from the example in #1512
The cast from an enum to its repr triggers this error.
Follows from the example in #1512