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) {
37 taking_multiple_units(foo(0), foo(1));
38 taking_multiple_units(foo(0), {
42 taking_multiple_units(
58 foo3("a", 3, vec![3]);
65 fn question_mark() -> Result<(), ()> {
73 fn unit_fn() -> Result<(), i32> {
77 fn fallible() -> Result<(), i32> {
83 fn returning_expr() -> Option<()> {
87 fn taking_multiple_units(a: (), b: ()) {}