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