about summary refs log tree commit diff
path: root/tests/ui/fn/fn-ptr-trait-int-float-infer-var.rs
blob: ba6646070aa313015d70ac5fe0e7817448f86669 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass
trait MyCmp {
    fn cmp(&self) {}
}
impl MyCmp for f32 {}

fn main() {
    // Ensure that `impl<F: FnPtr> Ord for F` is never considered for int and float infer vars.
    0.0.cmp();
}