about summary refs log tree commit diff
path: root/tests/ui/consts/const-fn-not-in-trait.stderr
blob: 04430610ad00cc1705e17265d82e35215fbe1cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
   |     help: remove the `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
   |     help: remove the `const`

error: aborting due to 2 previous errors

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