summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-20162.rs
blob: b491bc37f5153f44e2ee039b021ac26d9c990934 (plain)
1
2
3
4
5
6
7
struct X { x: i32 }

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