2017-12-10 13:47:55 -06:00
|
|
|
error[E0379]: trait fns cannot be declared const
|
|
|
|
--> $DIR/const-fn-not-in-trait.rs:17:5
|
|
|
|
|
|
|
|
|
17 | const fn f() -> u32;
|
|
|
|
| ^^^^^ trait fns cannot be const
|
|
|
|
|
|
|
|
error[E0379]: trait fns cannot be declared const
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/const-fn-not-in-trait.rs:19:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
19 | const fn g() -> u32 { 0 }
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^ trait fns cannot be const
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0379"
|