summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-fn-mismatch.stderr
blob: a86a06b3ef19e9d292be95784645ca6334b67bb5 (plain)
1
2
3
4
5
6
7
8
9
error[E0379]: functions in traits cannot be declared const
  --> $DIR/const-fn-mismatch.rs:11:5
   |
LL |     const fn f() -> u32 {
   |     ^^^^^ functions in traits cannot be const

error: aborting due to previous error

For more information about this error, try `rustc --explain E0379`.