1 #![deny(unused_must_use)]
3 fn foo() -> (Result<(), ()>, ()) {
8 (Ok::<(), ()>(()),); //~ ERROR unused `std::result::Result`
10 (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
11 //~^ ERROR unused `std::result::Result`
12 //~^^ ERROR unused `std::result::Result`
14 foo(); //~ ERROR unused `std::result::Result`
16 ((Err::<(), ()>(()), ()), ()); //~ ERROR unused `std::result::Result`