]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-min_const_fn.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-min_const_fn.stderr
1 error[E0379]: functions in traits cannot be declared const
2   --> $DIR/feature-gate-min_const_fn.rs:6:5
3    |
4 LL |     const fn foo() -> u32;
5    |     ^^^^^ functions in traits cannot be const
6
7 error[E0379]: functions in traits cannot be declared const
8   --> $DIR/feature-gate-min_const_fn.rs:7:5
9    |
10 LL |     const fn bar() -> u32 { 0 }
11    |     ^^^^^ functions in traits cannot be const
12
13 error[E0379]: functions in traits cannot be declared const
14   --> $DIR/feature-gate-min_const_fn.rs:11:5
15    |
16 LL |     const fn foo() -> u32 { 0 }
17    |     ^^^^^ functions in traits cannot be const
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0379`.