summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22468.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-22468.stderr')
-rw-r--r--tests/ui/issues/issue-22468.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-22468.stderr b/tests/ui/issues/issue-22468.stderr
new file mode 100644
index 000000000..3fff91acb
--- /dev/null
+++ b/tests/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`.