Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/panics/result-get-panic.rs

10 lines
225 B
Rust
Raw Normal View History

Move tests from `test/run-fail` to UI
2020-04-16 15:50:32 +09:00
// run-fail
Made Results API more composable
2013-12-06 22:23:23 +01:00
// error-pattern:called `Result::unwrap()` on an `Err` value
Skip tests on emscripten
2020-05-08 00:39:02 +09:00
// ignore-emscripten no processes
librustc: Stop reexporting the standard modules from prelude.
2013-05-24 19:35:29 -07:00
Utilize fewer reexports In regards to: https://github.com/rust-lang/rust/issues/19253#issuecomment-64836729 This commit: * Changes the #deriving code so that it generates code that utilizes fewer reexports (in particur Option::* and Result::*), which is necessary to remove those reexports in the future * Changes other areas of the codebase so that fewer reexports are utilized
2014-11-28 11:57:41 -05:00
use std::result::Result::Err;
librustc: Stop reexporting the standard modules from prelude.
2013-05-24 19:35:29 -07:00
Add a run-fail test for result::get, get rid of a FIXME. Also some random other tests, mostly xfailed.
2012-04-12 20:24:07 -07:00
fn main() {
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
println!("{}", Err::<isize, String>("kitty".to_string()).unwrap());
Fix a failing test.
2012-06-18 21:01:56 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2432ms Template: 3ms
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