Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/binop/binop-panic.rs

13 lines
199 B
Rust
Raw Normal View History

Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
// run-fail
In trans, don't assume both sides of a binop have the same type This was at least partially responsible for Issue 777. The only solution I can think of is for trans to just not generate code for a comparison if one or both sides has type _|_. Since that means evaluating that subexpression diverges, it should be ok to never do the comparison. Actually generating code for the comparison would trip an LLVM assertion failure.
2011-08-02 17:21:28 -07:00
// error-pattern:quux
Skip tests on emscripten
2020-05-08 00:39:02 +09:00
// ignore-emscripten no processes
Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn my_err(s: String) -> ! {
println!("{}", s);
panic!("quux");
}
Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
fn main() {
3_usize == my_err("bye".to_string());
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2742ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API