blob: 0f0aa20253c96a644f51d1a980a31749b7f62375 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#![deny(unused_must_use)]
fn foo() -> (Result<(), ()>, ()) {
(Ok::<(), ()>(()), ())
}
fn main() {
(Ok::<(), ()>(()),); //~ ERROR unused `Result`
(Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
//~^ ERROR unused `Result`
//~^^ ERROR unused `Result`
foo(); //~ ERROR unused `Result`
((Err::<(), ()>(()), ()), ()); //~ ERROR unused `Result`
}
|