2017-12-10 22:47:55 +03:00
|
|
|
error[E0379]: trait fns cannot be declared const
|
|
|
|
--> $DIR/const-fn-not-in-trait.rs:17:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const fn f() -> u32;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^ trait fns cannot be const
|
|
|
|
|
|
|
|
error[E0379]: trait fns cannot be declared const
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/const-fn-not-in-trait.rs:19:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const fn g() -> u32 { 0 }
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^ trait fns cannot be const
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0379`.
|