rust/tests/ui/issues/issue-20162.rs
2023-01-11 09:32:08 +00:00

8 lines
122 B
Rust

struct X { x: i32 }
fn main() {
let mut b: Vec<X> = vec![];
b.sort();
//~^ ERROR `X: Ord` is not satisfied
}