This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-06-04 19:29:07 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
e69748ba4f
rust
/
src
/
test
/
ui
/
macros
/
assert-macro-explicit.rs
7 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Move tests from `test/run-fail` to UI
2020-04-16 06:50:32 +00:00
// run-fail
Update infrastructure for fail -> panic This includes updating the language items and marking what needs to change after a snapshot. If you do not use the standard library, the language items you need to implement have changed. For example: ```rust #[lang = "fail_fmt"] fn fail_fmt() -> ! { loop {} } ``` is now ```rust #[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} } ``` Related, lesser-implemented language items `fail` and `fail_bounds_check` have become `panic` and `panic_bounds_check`, as well. These are implemented by `libcore`, so it is unlikely (though possible!) that these two renamings will affect you. [breaking-change] Fix test suite
2014-10-28 18:07:33 +00:00
// error-pattern:panicked at 'assertion failed: false'
Added test cases for all fail message formats
2013-04-26 08:23:12 +00:00
fn
main
(
)
{
assert!
(
false
)
;
}
Reference in New Issue
Copy Permalink