]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | error[E0379]: trait fns cannot be declared const |
2 | --> $DIR/feature-gate-const_fn.rs:16:5 | |
3 | | | |
0531ce1d | 4 | LL | const fn foo() -> u32; //~ ERROR const fn is unstable |
ff7c6d11 XL |
5 | | ^^^^^ trait fns cannot be const |
6 | ||
7 | error[E0379]: trait fns cannot be declared const | |
8 | --> $DIR/feature-gate-const_fn.rs:18:5 | |
9 | | | |
0531ce1d | 10 | LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
11 | | ^^^^^ trait fns cannot be const |
12 | ||
13 | error[E0379]: trait fns cannot be declared const | |
14 | --> $DIR/feature-gate-const_fn.rs:27:5 | |
15 | | | |
0531ce1d | 16 | LL | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
17 | | ^^^^^ trait fns cannot be const |
18 | ||
2c00a5a8 | 19 | error[E0658]: const fn is unstable (see issue #24111) |
ff7c6d11 XL |
20 | --> $DIR/feature-gate-const_fn.rs:13:1 |
21 | | | |
0531ce1d | 22 | LL | const fn foo() -> usize { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 | | | |
25 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
26 | ||
2c00a5a8 | 27 | error[E0658]: const fn is unstable (see issue #24111) |
ff7c6d11 XL |
28 | --> $DIR/feature-gate-const_fn.rs:16:5 |
29 | | | |
0531ce1d | 30 | LL | const fn foo() -> u32; //~ ERROR const fn is unstable |
ff7c6d11 XL |
31 | | ^^^^^^^^^^^^^^^^^^^^^^ |
32 | | | |
33 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
34 | ||
2c00a5a8 | 35 | error[E0658]: const fn is unstable (see issue #24111) |
ff7c6d11 XL |
36 | --> $DIR/feature-gate-const_fn.rs:18:5 |
37 | | | |
0531ce1d | 38 | LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
39 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
40 | | | |
41 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
42 | ||
2c00a5a8 | 43 | error[E0658]: const fn is unstable (see issue #24111) |
ff7c6d11 XL |
44 | --> $DIR/feature-gate-const_fn.rs:23:5 |
45 | | | |
0531ce1d | 46 | LL | const fn baz() -> u32 { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
47 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
48 | | | |
49 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
50 | ||
2c00a5a8 | 51 | error[E0658]: const fn is unstable (see issue #24111) |
ff7c6d11 XL |
52 | --> $DIR/feature-gate-const_fn.rs:27:5 |
53 | | | |
0531ce1d | 54 | LL | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable |
ff7c6d11 XL |
55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
56 | | | |
57 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
58 | ||
59 | error: aborting due to 8 previous errors | |
60 | ||
0531ce1d XL |
61 | Some errors occurred: E0379, E0658. |
62 | For more information about an error, try `rustc --explain E0379`. |