1 #![warn(clippy::unit_arg)]
2 #![allow(clippy::no_effect, unused_must_use, unused_variables)]
6 fn foo<T: Debug>(t: T) {
10 fn foo3<T1: Debug, T2: Debug, T3: Debug>(t1: T1, t2: T2, t3: T3) {
11 println!("{:?}, {:?}, {:?}", t1, t2, t3);
17 fn bar<T: Debug>(&self, t: T) {
35 taking_multiple_units(foo(0), foo(1));
36 taking_multiple_units(foo(0), {
40 taking_multiple_units(
56 foo3("a", 3, vec![3]);
63 fn question_mark() -> Result<(), ()> {
71 fn unit_fn() -> Result<(), i32> {
75 fn fallible() -> Result<(), i32> {
81 fn returning_expr() -> Option<()> {
85 fn taking_multiple_units(a: (), b: ()) {}