1
2
3
4
5
6
7
8
9
|
//@ reject: unsupported method `.sort()`
// A standard-library method with no verified Nim equivalent must be rejected,
// not guessed at. Rust's `sort` is stable and Nim's `sort` is not, so an
// unthinking `.sort` mapping would differ on equal keys.
fn main() {
let mut v: Vec<i32> = vec![3, 1, 2];
v.sort();
println!("{:?}", v);
}
|