@@ -29,33 +29,57 @@ error: expected a message field for "missing_message"
29
29
| ^^^^^^^^^^^^^^^^^
30
30
|
31
31
32
- error: overrides existing message: `key `
33
- --> $DIR/test.rs:53:9
32
+ error: overrides existing message: `a_b_key `
33
+ --> $DIR/test.rs:53:16
34
34
|
35
- LL | b => "./duplicate-b.ftl",
36
- | ^
35
+ LL | a_b => "./duplicate-a -b.ftl",
36
+ | ^^^^^^^^^^^^^^^^^^^^ ^
37
37
|
38
38
help: previously defined in this resource
39
- --> $DIR/test.rs:52:9
39
+ --> $DIR/test.rs:52:14
40
40
|
41
41
LL | a => "./duplicate-a.ftl",
42
- | ^
42
+ | ^^^^^^^^^^^^^^^^^^ ^
43
43
44
- error: name `this -slug-has-hyphens` contains a '-' character
45
- --> $DIR/test.rs:62:9
44
+ error: name `slug_with_hyphens_this -slug-has-hyphens` contains a '-' character
45
+ --> $DIR/test.rs:62:30
46
46
|
47
47
LL | slug_with_hyphens => "./slug-with-hyphens.ftl",
48
- | ^^^^^^^^^^^^^^^^^
48
+ | ^^^^^^^^ ^^^^^^^^^^^^^^^^^
49
49
|
50
50
= help: replace any '-'s with '_'s
51
51
52
52
error: attribute `label-has-hyphens` contains a '-' character
53
- --> $DIR/test.rs:71:9
53
+ --> $DIR/test.rs:71:31
54
54
|
55
55
LL | label_with_hyphens => "./label-with-hyphens.ftl",
56
- | ^^^^^^^^^^^^^^^^^^
56
+ | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^
57
57
|
58
58
= help: replace any '-'s with '_'s
59
59
60
- error: aborting due to 6 previous errors
60
+ error: name `with-hyphens` contains a '-' character
61
+ --> $DIR/test.rs:90:23
62
+ |
63
+ LL | test_crate => "./missing-crate-name.ftl",
64
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
65
+ |
66
+ = help: replace any '-'s with '_'s
67
+
68
+ error: name `with-hyphens` does not start with the crate name
69
+ --> $DIR/test.rs:90:23
70
+ |
71
+ LL | test_crate => "./missing-crate-name.ftl",
72
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
73
+ |
74
+ = help: prepend `test_crate_` to the slug name: `test_crate_with_hyphens`
75
+
76
+ error: name `test-crate_foo` contains a '-' character
77
+ --> $DIR/test.rs:90:23
78
+ |
79
+ LL | test_crate => "./missing-crate-name.ftl",
80
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
81
+ |
82
+ = help: replace any '-'s with '_'s
83
+
84
+ error: aborting due to 9 previous errors
61
85
0 commit comments