nandi/rustnimpublic Fork 0
ae9f986fc43d0fc9ab029946e2c7a25cdc72b4ed
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 ae9f986fc43d0fc9ab029946e2c7a25cdc72b4ed · nandithebull · 13h ago
902-reject-float-to-int-cast.rs · 6 lines · 205 BRust Blame HistoryRaw
1
2
3
4
5
6
//@ reject: Rust saturates, Nim rounds
// Rust saturates float->int casts, Nim rounds and range-checks. Different
// operations, so no mapping is emitted.
fn main() {
    println!("{}", 1e10f64 as i32);
}