@@ -5,36 +5,17 @@ LL | const fn foo() -> u32;
55 | ^^^^^ functions in traits cannot be const
66
77error[E0379]: functions in traits cannot be declared const
8- --> $DIR/feature-gate-min_const_fn.rs:8 :5
8+ --> $DIR/feature-gate-min_const_fn.rs:7 :5
99 |
1010LL | const fn bar() -> u32 { 0 }
1111 | ^^^^^ functions in traits cannot be const
1212
1313error[E0379]: functions in traits cannot be declared const
14- --> $DIR/feature-gate-min_const_fn.rs:13 :5
14+ --> $DIR/feature-gate-min_const_fn.rs:11 :5
1515 |
1616LL | const fn foo() -> u32 { 0 }
1717 | ^^^^^ functions in traits cannot be const
1818
19- error[E0658]: const fn is unstable
20- --> $DIR/feature-gate-min_const_fn.rs:6:5
21- |
22- LL | const fn foo() -> u32;
23- | ^^^^^^^^^^^^^^^^^^^^^^
24- |
25- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
26- = help: add `#![feature(const_fn)]` to the crate attributes to enable
27-
28- error[E0658]: const fn is unstable
29- --> $DIR/feature-gate-min_const_fn.rs:8:5
30- |
31- LL | const fn bar() -> u32 { 0 }
32- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
33- |
34- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
35- = help: add `#![feature(const_fn)]` to the crate attributes to enable
36-
37- error: aborting due to 5 previous errors
19+ error: aborting due to 3 previous errors
3820
39- Some errors have detailed explanations: E0379, E0658.
40- For more information about an error, try `rustc --explain E0379`.
21+ For more information about this error, try `rustc --explain E0379`.
0 commit comments