summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-fn-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-fn-mismatch.stderr')
-rw-r--r--tests/ui/consts/const-fn-mismatch.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-fn-mismatch.stderr b/tests/ui/consts/const-fn-mismatch.stderr
new file mode 100644
index 000000000..a86a06b3e
--- /dev/null
+++ b/tests/ui/consts/const-fn-mismatch.stderr
@@ -0,0 +1,9 @@
+error[E0379]: functions in traits cannot be declared const
+ --> $DIR/const-fn-mismatch.rs:11:5
+ |
+LL | const fn f() -> u32 {
+ | ^^^^^ functions in traits cannot be const
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0379`.