blob: 8d4ea8815017530e55181d005506889a69813a08 [file] [edit]
//! regression test for issue https://github.com/rust-lang/rust/issues/20162
struct X {
x: i32,
}
fn main() {
let mut b: Vec<X> = vec![];
b.sort();
//~^ ERROR `X: Ord` is not satisfied
}