summary refs log tree commit diff
path: root/src/test/run-fail/result-get-panic.rs
blob: cddf20ee49df3e9baeb8f315febd596c5f0f4c49 (plain)
1
2
3
4
5
6
7
// error-pattern:called `Result::unwrap()` on an `Err` value

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

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