blob: 7d1fbe45c5302ce815920f4b06566e218f1f65de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0379]: functions in traits cannot be declared const
--> $DIR/const-fn-in-trait.rs:3:5
|
LL | const fn g();
| ^^^^^ functions in traits cannot be const
error[E0379]: functions in traits cannot be declared const
--> $DIR/const-fn-in-trait.rs:7:5
|
LL | const fn f() -> u32 { 22 }
| ^^^^^ functions in traits cannot be const
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0379`.
|