error[E0379]: trait fns cannot be declared const --> $DIR/const-fn-not-in-trait.rs:17:5 | LL | const fn f() -> u32; | ^^^^^ trait fns cannot be const error[E0379]: trait fns cannot be declared const --> $DIR/const-fn-not-in-trait.rs:19:5 | LL | const fn g() -> u32 { 0 } | ^^^^^ trait fns cannot be const error: aborting due to 2 previous errors If you want more information on this error, try using "rustc --explain E0379"