]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/type-placeholder-fn-in-const.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / typeck / type-placeholder-fn-in-const.stderr
1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
2 --> $DIR/type-placeholder-fn-in-const.rs:4:25
3 |
4 LL | const TEST: fn() -> _;
5 | ^ not allowed in type signatures
6
7 error[E0121]: the type placeholder `_` is not allowed within types on item signatures for constants
8 --> $DIR/type-placeholder-fn-in-const.rs:4:25
9 |
10 LL | const TEST: fn() -> _;
11 | ^ not allowed in type signatures
12
13 error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
14 --> $DIR/type-placeholder-fn-in-const.rs:10:25
15 |
16 LL | const TEST: fn() -> _ = 42;
17 | ^ not allowed in type signatures
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0121`.