about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/constck.stderr
blob: c223d273b383fd89a5df7f199575c2396f4f38e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0015]: cannot call non-const function `not_const` in constant functions
  --> $DIR/constck.rs:6:16
   |
LL |         become not_const();
   |                ^^^^^^^^^^^
   |
   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants

error[E0015]: cannot call non-const function `not_const` in constant functions
  --> $DIR/constck.rs:13:26
   |
LL |         become yes_const(not_const());
   |                          ^^^^^^^^^^^
   |
   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0015`.