2020-02-11 08:19:21 +01:00
|
|
|
error[E0379]: functions in traits cannot be declared const
|
2021-04-26 14:53:41 +02:00
|
|
|
--> $DIR/const-fn-mismatch.rs:11:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2020-02-11 08:19:21 +01:00
|
|
|
LL | const fn f() -> u32 {
|
|
|
|
| ^^^^^ functions in traits cannot be const
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0379`.
|