summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-22468.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-22468.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-22468.stderr b/src/test/ui/issues/issue-22468.stderr
new file mode 100644
index 000000000..3fff91acb
--- /dev/null
+++ b/src/test/ui/issues/issue-22468.stderr
@@ -0,0 +1,13 @@
+error[E0618]: expected function, found `&str`
+ --> $DIR/issue-22468.rs:3:13
+ |
+LL | let foo = "bar";
+ | --- `foo` has type `&str`
+LL | let x = foo("baz");
+ | ^^^-------
+ | |
+ | call expression requires function
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0618`.