This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
5a5fa15382
rust
/
tests
/
compile-fail
/
div-by-zero-2.rs
6 lines
92 B
Rust
Raw
Normal View
History
Unescape
Escape
add test for div-by-zero with the operator (rather than the intrinsic)
2017-07-03 22:59:47 -05:00
#![
allow(const_err)
]
fn
main
(
)
{
don't use NOTE in tests
2018-10-19 04:50:17 -05:00
let
_n
=
1
/
0
;
//~ ERROR attempt to divide by zero
add test for div-by-zero with the operator (rather than the intrinsic)
2017-07-03 22:59:47 -05:00
}
Reference in New Issue
Copy Permalink