Open nilehmann opened 2 weeks ago
I also discovered the following crash while trying to reproduce the issue in the op
#[flux::assoc(fn eval(x: int) -> int)]
trait MyTrait { }
impl MyTrait for i32 { }
#[flux::sig(fn(x: i32) -> i32[<T as MyTrait>::eval(x)])]
fn test00<T>(x: i32) -> i32 {
todo!()
}
error: internal compiler error: crates/flux-middle/src/rty/projections.rs:187:23: error selecting Obligation(predicate=TraitPredicate(<T as MyTrait>, polarity:Positive), depth=0): Unimplemented
So here we should make flux
yell since the impl
doesn't in fact define the associated refinement, yes?