]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/must_use-tuple.rs
1 #![deny(unused_must_use)]
3 fn foo() -> (Result
<(), ()>, ()) {
8 (Ok
::<(), ()>(()),); //~ ERROR unused `Result`
10 (Ok
::<(), ()>(()), 0, Ok
::<(), ()>(()), 5);
11 //~^ ERROR unused `Result`
12 //~^^ ERROR unused `Result`
14 foo(); //~ ERROR unused `Result`
16 ((Err
::<(), ()>(()), ()), ()); //~ ERROR unused `Result`