summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inline-const/expr-with-block-err.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/inline-const/expr-with-block-err.stderr')
-rw-r--r--src/test/ui/inline-const/expr-with-block-err.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/inline-const/expr-with-block-err.stderr b/src/test/ui/inline-const/expr-with-block-err.stderr
new file mode 100644
index 000000000..6f7408f4e
--- /dev/null
+++ b/src/test/ui/inline-const/expr-with-block-err.stderr
@@ -0,0 +1,9 @@
+error[E0308]: mismatched types
+ --> $DIR/expr-with-block-err.rs:4:13
+ |
+LL | const { 2 } - const { 1 };
+ | ^ expected `()`, found integer
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.