@@ -29,33 +29,57 @@ error: expected a message field for "missing_message"
2929 | ^^^^^^^^^^^^^^^^^
3030 |
3131
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
3434 |
35- LL | b => "./duplicate-b.ftl",
36- | ^
35+ LL | a_b => "./duplicate-a -b.ftl",
36+ | ^^^^^^^^^^^^^^^^^^^^ ^
3737 |
3838help: previously defined in this resource
39- --> $DIR/test.rs:52:9
39+ --> $DIR/test.rs:52:14
4040 |
4141LL | a => "./duplicate-a.ftl",
42- | ^
42+ | ^^^^^^^^^^^^^^^^^^ ^
4343
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
4646 |
4747LL | slug_with_hyphens => "./slug-with-hyphens.ftl",
48- | ^^^^^^^^^^^^^^^^^
48+ | ^^^^^^^^ ^^^^^^^^^^^^^^^^^
4949 |
5050 = help: replace any '-'s with '_'s
5151
5252error: attribute `label-has-hyphens` contains a '-' character
53- --> $DIR/test.rs:71:9
53+ --> $DIR/test.rs:71:31
5454 |
5555LL | label_with_hyphens => "./label-with-hyphens.ftl",
56- | ^^^^^^^^^^^^^^^^^^
56+ | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^
5757 |
5858 = help: replace any '-'s with '_'s
5959
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
6185
0 commit comments