fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
697 B21 linesraw
1error[E0379]: functions in traits cannot be declared const
2  --> $DIR/feature-gate-min_const_fn.rs:6:5
3   |
4LL |     const fn foo() -> u32;
5   |     ^^^^^ functions in traits cannot be const
6
7error[E0379]: functions in traits cannot be declared const
8  --> $DIR/feature-gate-min_const_fn.rs:7:5
9   |
10LL |     const fn bar() -> u32 { 0 }
11   |     ^^^^^ functions in traits cannot be const
12
13error[E0379]: functions in traits cannot be declared const
14  --> $DIR/feature-gate-min_const_fn.rs:11:5
15   |
16LL |     const fn foo() -> u32 { 0 }
17   |     ^^^^^ functions in traits cannot be const
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0379`.