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
a9cb15d793495b6b6318c7a60c42d12ddcf1609a
rust/tests/ui/binop/binop-panic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
188 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
tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}`
2025-01-23 16:36:54 +08:00
//@ needs-subprocess
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: 2828ms Template: 5ms
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