]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-75889.stderr
Rollup merge of #100984 - ChrisDenton:reinstate-init, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / issue-75889.stderr
1 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constant items
2   --> $DIR/issue-75889.rs:3:24
3    |
4 LL | const FOO: dyn Fn() -> _ = "";
5    |                        ^ not allowed in type signatures
6
7 error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
8   --> $DIR/issue-75889.rs:4:25
9    |
10 LL | static BOO: dyn Fn() -> _ = "";
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`.