2024-01-01 23:23:11 +01:00
|
|
|
error[E0379]: functions in traits cannot be declared const
|
|
|
|
--> $DIR/trait-fn-const.rs:6:5
|
|
|
|
|
|
|
|
|
LL | const fn fun();
|
|
|
|
| ^^^^^ functions in traits cannot be const
|
|
|
|
|
2024-01-02 00:26:50 +01:00
|
|
|
error[E0379]: functions in trait impls cannot be declared const
|
2024-01-01 23:23:11 +01:00
|
|
|
--> $DIR/trait-fn-const.rs:10:5
|
|
|
|
|
|
|
|
|
LL | const fn fun() {}
|
2024-01-02 00:26:50 +01:00
|
|
|
| ^^^^^ functions in trait impls cannot be const
|
2024-01-01 23:23:11 +01:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0379`.
|