From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/issues/issue-21701.stderr | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/test/ui/issues/issue-21701.stderr (limited to 'src/test/ui/issues/issue-21701.stderr') diff --git a/src/test/ui/issues/issue-21701.stderr b/src/test/ui/issues/issue-21701.stderr deleted file mode 100644 index 9f1fe7dde..000000000 --- a/src/test/ui/issues/issue-21701.stderr +++ /dev/null @@ -1,30 +0,0 @@ -error[E0618]: expected function, found `U` - --> $DIR/issue-21701.rs:2:13 - | -LL | fn foo(t: U) { - | - `t` has type `U` -LL | let y = t(); - | ^-- - | | - | call expression requires function - -error[E0618]: expected function, found struct `Bar` - --> $DIR/issue-21701.rs:9:13 - | -LL | struct Bar; - | ---------- struct `Bar` defined here -... -LL | let f = Bar(); - | ^^^-- - | | - | call expression requires function - | -help: `Bar` is a unit struct, and does not take parentheses to be constructed - | -LL - let f = Bar(); -LL + let f = Bar; - | - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0618`. -- cgit v1.2.3