]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-inference/or_else-multiple-type-params.rs
Rollup merge of #107576 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / type-inference / or_else-multiple-type-params.rs
1 use std::process::{Command, Stdio};
2
3 fn main() {
4     let process = Command::new("wc")
5         .stdout(Stdio::piped())
6         .spawn()
7         .or_else(|err| { //~ ERROR type annotations needed
8             panic!("oh no: {:?}", err);
9         }).unwrap();
10 }