@@ -5,36 +5,17 @@ LL | const fn foo() -> u32;
5
5
| ^^^^^ functions in traits cannot be const
6
6
7
7
error[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
9
9
|
10
10
LL | const fn bar() -> u32 { 0 }
11
11
| ^^^^^ functions in traits cannot be const
12
12
13
13
error[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
15
15
|
16
16
LL | const fn foo() -> u32 { 0 }
17
17
| ^^^^^ functions in traits cannot be const
18
18
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
38
20
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