2 #![warn(clippy::unit_arg)]
3 #![allow(clippy::no_effect, unused_must_use, unused_variables)]
7 fn foo<T: Debug>(t: T) {
11 fn foo3<T1: Debug, T2: Debug, T3: Debug>(t1: T1, t2: T2, t3: T3) {
12 println!("{:?}, {:?}, {:?}", t1, t2, t3);
18 fn bar<T: Debug>(&self, t: T) {
38 taking_multiple_units(foo(0), foo(1));
45 foo3("a", 3, vec![3]);
52 fn question_mark() -> Result<(), ()> {
60 fn unit_fn() -> Result<(), i32> {
64 fn fallible() -> Result<(), i32> {
70 fn returning_expr() -> Option<()> {
74 fn taking_multiple_units(a: (), b: ()) {}