rust/src/test/ui/const-fn-not-in-trait.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

16 lines
449 B
Plaintext

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
For more information about this error, try `rustc --explain E0379`.