X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Funit_arg.stderr;h=21ccc684ea9de9e30944abba009a9ce6958f4e5a;hb=a0e9f9bd0dca39ccff47baedffa94aca74911a86;hp=862534b18ecbb20c0e89f260e070a71b8890dc1b;hpb=f11d993c0f0a8282e6721f770c04960ae1d2b2bc;p=rust.git diff --git a/tests/ui/unit_arg.stderr b/tests/ui/unit_arg.stderr index 862534b18ec..21ccc684ea9 100644 --- a/tests/ui/unit_arg.stderr +++ b/tests/ui/unit_arg.stderr @@ -18,6 +18,7 @@ LL | foo({ LL | | 1; LL | | }); | |_____^ + | help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); @@ -28,6 +29,7 @@ error: passing a unit value to a function | LL | foo(foo(1)); | ^^^^^^ + | help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); @@ -42,6 +44,7 @@ LL | | foo(1); LL | | foo(2); LL | | }); | |_____^ + | help: if you intended to pass a unit value, use a unit literal instead | LL | foo(()); @@ -52,6 +55,7 @@ error: passing a unit value to a function | LL | foo3({}, 2, 2); | ^^ + | help: if you intended to pass a unit value, use a unit literal instead | LL | foo3((), 2, 2); @@ -65,6 +69,7 @@ LL | b.bar({ LL | | 1; LL | | }); | |_____^ + | help: if you intended to pass a unit value, use a unit literal instead | LL | b.bar(());