nandi/rustnimpublic Fork 0
428f3741e2904549bd0157081162006f3952b324
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Add the differential test runner, and a lowering to measure with it 8ac32af · on 428f3741e2904549bd0157081162006f3952b324 · nandithebull · 18h ago
901-reject-unknown-method.rs · 9 lines · 346 BRust Blame HistoryRaw
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);
}