about summary refs log tree commit diff
path: root/tests/ui/traits/dont-match-error-ty-with-calller-supplied-obligation-issue-121941.rs
blob: 85c70a21f6839863da4ef1d5a96439560d57b5bd (plain)
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() {}