summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-fn-not-in-trait.stderr
blob: 5d364eb882dba88e0c328026271184db1ef74713 (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-not-in-trait.rs:5:5
   |
LL |     const fn f() -> u32;
   |     ^^^^^ functions in traits cannot be const

error[E0379]: functions in traits cannot be declared const
  --> $DIR/const-fn-not-in-trait.rs:7:5
   |
LL |     const fn g() -> u32 {
   |     ^^^^^ functions in traits cannot be const

error: aborting due to 2 previous errors

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