mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
3db37fb78a
In #119972 the code should have become `E0123` rather than `0123`. This fix doesn't affect the outcome because the proc macro errors out before the type of the code is checked, but the fix makes the test's code consistent with other similar code elsewhere.
12 lines
352 B
Plaintext
12 lines
352 B
Plaintext
error: diagnostic slug and crate name do not match
|
|
--> $DIR/enforce_slug_naming.rs:22:8
|
|
|
|
|
LL | #[diag(compiletest_example, code = E0123)]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: slug is `compiletest_example` but the crate name is `rustc_dummy`
|
|
= help: expected a slug starting with `dummy_...`
|
|
|
|
error: aborting due to 1 previous error
|
|
|