summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/typeck_type_placeholder_item_help.stderr
blob: 07a5dbd93c7432019860cc177d5b5a6bb481da0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
  --> $DIR/typeck_type_placeholder_item_help.rs:4:15
   |
LL | fn test1() -> _ { Some(42) }
   |               ^
   |               |
   |               not allowed in type signatures
   |               help: replace with the correct return type: `Option<i32>`

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/typeck_type_placeholder_item_help.rs:7:14
   |
LL | const TEST2: _ = 42u32;
   |              ^
   |              |
   |              not allowed in type signatures
   |              help: replace with the correct type: `u32`

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/typeck_type_placeholder_item_help.rs:10:14
   |
LL | const TEST3: _ = Some(42);
   |              ^
   |              |
   |              not allowed in type signatures
   |              help: replace with the correct type: `Option<i32>`

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

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constant items
  --> $DIR/typeck_type_placeholder_item_help.rs:13:22
   |
LL | const TEST4: fn() -> _ = 42;
   |                      ^ not allowed in type signatures

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/typeck_type_placeholder_item_help.rs:18:18
   |
LL |     const TEST5: _ = 42;
   |                  ^
   |                  |
   |                  not allowed in type signatures
   |                  help: replace with the correct type: `i32`

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/typeck_type_placeholder_item_help.rs:25:18
   |
LL |     const TEST6: _ = 13;
   |                  ^
   |                  |
   |                  not allowed in type signatures
   |                  help: replace with the correct type: `i32`

error: aborting due to 7 previous errors

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