summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/type-placeholder-fn-in-const.stderr
blob: e7b2e554a8d425261b3926352d2204168b6fac75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
  --> $DIR/type-placeholder-fn-in-const.rs:4:25
   |
LL |     const TEST: fn() -> _;
   |                         ^ not allowed in type signatures

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/type-placeholder-fn-in-const.rs:4:25
   |
LL |     const TEST: fn() -> _;
   |                         ^ not allowed in type signatures

error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
  --> $DIR/type-placeholder-fn-in-const.rs:10:25
   |
LL |     const TEST: fn() -> _ = 42;
   |                         ^ not allowed in type signatures

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0121`.