We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d9ba0 commit b8deb93Copy full SHA for b8deb93
src/test/ui/typeck/call-block.rs
@@ -0,0 +1,3 @@
1
+fn main() {
2
+ let _ = {42}(); //~ ERROR expected function, found `_`
3
+}
src/test/ui/typeck/call-block.stderr
@@ -0,0 +1,11 @@
+error[E0618]: expected function, found `_`
+ --> $DIR/call-block.rs:2:13
+ |
4
+LL | let _ = {42}();
5
+ | ^^^^--
6
+ | |
7
+ | call expression requires function
8
+
9
+error: aborting due to previous error
10
11
+For more information about this error, try `rustc --explain E0618`.
0 commit comments