summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/result-get-panic.rs
blob: 461f30b9134b092ed515ea50e044aa2b13b2deb8 (plain)
1
2
3
4
5
6
7
8
9
// run-fail
// error-pattern:called `Result::unwrap()` on an `Err` value
// ignore-emscripten no processes

use std::result::Result::Err;

fn main() {
    println!("{}", Err::<isize, String>("kitty".to_string()).unwrap());
}