1 2 3 4 5 6
fn function<T: PartialEq>() { foo == 2; //~ ERROR cannot find value `foo` in this scope [E0425] //~^ ERROR mismatched types } fn main() {}