1 error[E0379]: trait fns cannot be declared const
2 --> $DIR/feature-gate-const_fn.rs:18:5
4 LL | const fn foo() -> u32; //~ ERROR const fn is unstable
5 | ^^^^^ trait fns cannot be const
7 error[E0379]: trait fns cannot be declared const
8 --> $DIR/feature-gate-const_fn.rs:20:5
10 LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
11 | ^^^^^ trait fns cannot be const
13 error[E0379]: trait fns cannot be declared const
14 --> $DIR/feature-gate-const_fn.rs:29:5
16 LL | const fn foo() -> u32 { 0 } //~ ERROR trait fns cannot be declared const
17 | ^^^^^ trait fns cannot be const
19 error[E0658]: const fn is unstable (see issue #24111)
20 --> $DIR/feature-gate-const_fn.rs:18:5
22 LL | const fn foo() -> u32; //~ ERROR const fn is unstable
23 | ^^^^^^^^^^^^^^^^^^^^^^
25 = help: add #![feature(const_fn)] to the crate attributes to enable
27 error[E0658]: const fn is unstable (see issue #24111)
28 --> $DIR/feature-gate-const_fn.rs:20:5
30 LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 = help: add #![feature(const_fn)] to the crate attributes to enable
35 error: aborting due to 5 previous errors
37 Some errors occurred: E0379, E0658.
38 For more information about an error, try `rustc --explain E0379`.