rust/src/test/ui/consts/const-fn-not-in-trait.stderr
2018-12-25 21:08:33 -07:00

16 lines
447 B
Plaintext

error[E0379]: trait fns cannot be declared const
--> $DIR/const-fn-not-in-trait.rs:7: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:9:5
|
LL | const fn g() -> u32 { 0 }
| ^^^^^ trait fns cannot be const
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0379`.