]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-fn-not-safe-for-const.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-fn-not-safe-for-const.stderr
1 error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/const-fn-not-safe-for-const.rs:24:5
3    |
4 LL |     random() //~ ERROR E0015
5    |     ^^^^^^^^
6
7 error[E0013]: constant functions cannot refer to statics, use a constant instead
8   --> $DIR/const-fn-not-safe-for-const.rs:30:5
9    |
10 LL |     Y
11    |     ^
12
13 error[E0013]: constant functions cannot refer to statics, use a constant instead
14   --> $DIR/const-fn-not-safe-for-const.rs:35:5
15    |
16 LL |     &Y
17    |     ^^
18
19 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
20   --> $DIR/const-fn-not-safe-for-const.rs:40:13
21    |
22 LL |     let x = 22;
23    |             ^^
24    |
25    = help: add #![feature(const_let)] to the crate attributes to enable
26
27 error[E0658]: statements in constant functions are unstable (see issue #48821)
28   --> $DIR/const-fn-not-safe-for-const.rs:40:13
29    |
30 LL |     let x = 22;
31    |             ^^
32    |
33    = help: add #![feature(const_let)] to the crate attributes to enable
34
35 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
36   --> $DIR/const-fn-not-safe-for-const.rs:43:13
37    |
38 LL |     let y = 44;
39    |             ^^
40    |
41    = help: add #![feature(const_let)] to the crate attributes to enable
42
43 error[E0658]: statements in constant functions are unstable (see issue #48821)
44   --> $DIR/const-fn-not-safe-for-const.rs:43:13
45    |
46 LL |     let y = 44;
47    |             ^^
48    |
49    = help: add #![feature(const_let)] to the crate attributes to enable
50
51 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
52   --> $DIR/const-fn-not-safe-for-const.rs:46:5
53    |
54 LL |     x + y
55    |     ^
56    |
57    = help: add #![feature(const_let)] to the crate attributes to enable
58
59 error[E0658]: let bindings in constant functions are unstable (see issue #48821)
60   --> $DIR/const-fn-not-safe-for-const.rs:46:9
61    |
62 LL |     x + y
63    |         ^
64    |
65    = help: add #![feature(const_let)] to the crate attributes to enable
66
67 error: aborting due to 9 previous errors
68
69 Some errors occurred: E0013, E0015, E0658.
70 For more information about an error, try `rustc --explain E0013`.