]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error[E0618]: expected function, found `usize` |
2 | --> $DIR/const-as-fn.rs:4:5 | |
3 | | | |
4 | LL | const FOO: usize = 0; | |
064997fb | 5 | | ---------------- `FOO` defined here |
6a06907d XL |
6 | ... |
7 | LL | FOO(); | |
8 | | ^^^-- | |
9 | | | | |
10 | | call expression requires function | |
11 | ||
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0618`. |