summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-114701.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-114701.stderr')
-rw-r--r--tests/ui/suggestions/issue-114701.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-114701.stderr b/tests/ui/suggestions/issue-114701.stderr
new file mode 100644
index 000000000..67462a09c
--- /dev/null
+++ b/tests/ui/suggestions/issue-114701.stderr
@@ -0,0 +1,15 @@
+error[E0618]: expected function, found `Enum<()>`
+ --> $DIR/issue-114701.rs:14:27
+ |
+LL | enum Enum<T> { SVariant { v: T }, UVariant }
+ | -------- `Enum::UVariant` defined here
+...
+LL | assert!(if let Enum::$variant::<()> $matcher = $expr () { true } else { false },
+ | -------- call expression requires function
+...
+LL | is_variant!(UVariant, Enum::<()>::UVariant);
+ | ^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0618`.