]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-81885.stderr
Fixing bad suggestion for `_` in `const` type when a function #81885
[rust.git] / src / test / ui / issues / issue-81885.stderr
1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2   --> $DIR/issue-81885.rs:1:22
3    |
4 LL | const TEST4: fn() -> _ = 42;
5    |                      ^ not allowed in type signatures
6
7 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
8   --> $DIR/issue-81885.rs:6:26
9    |
10 LL |     const TEST5: fn() -> _ = 42;
11    |                          ^ not allowed in type signatures
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0121`.