]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-as-fn.stderr
Rollup merge of #107023 - scottmcm:stop-shouting, r=Nilstrieb
[rust.git] / tests / ui / consts / const-as-fn.stderr
1 error[E0618]: expected function, found `usize`
2   --> $DIR/const-as-fn.rs:4:5
3    |
4 LL | const FOO: usize = 0;
5    | ---------------- `FOO` defined here
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`.