flux
flux copied to clipboard
Check that `impl` satisfies `trait` specs
Currently, flux
happily verifies the below which seems dubious:
pub trait Silly {
#[flux::sig(fn(&Self) -> i32{v:100 < v})]
fn bloop(&self) -> i32;
}
impl Silly for i32 {
fn bloop(&self) -> i32 {
0
}
}
Originally posted by @ranjitjhala in https://github.com/flux-rs/flux/pull/589#discussion_r1442110777