mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 07:33:53 +00:00
11 lines
199 B
Rust
11 lines
199 B
Rust
|
// 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();
|
||
|
}
|