]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/type-placeholder-fn-in-const.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / typeck / type-placeholder-fn-in-const.stderr
1 error[E0121]: the 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 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 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`.