about summary refs log tree commit diff
path: root/tests/ui/attributes/crate-name-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/crate-name-mismatch.stderr')
-rw-r--r--tests/ui/attributes/crate-name-mismatch.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/attributes/crate-name-mismatch.stderr b/tests/ui/attributes/crate-name-mismatch.stderr
new file mode 100644
index 00000000000..4021fbe7c18
--- /dev/null
+++ b/tests/ui/attributes/crate-name-mismatch.stderr
@@ -0,0 +1,8 @@
+error: `--crate-name` and `#[crate_name]` are required to match, but `foo` != `bar`
+  --> $DIR/crate-name-mismatch.rs:5:1
+   |
+LL | #![crate_name = "bar"]
+   | ^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 1 previous error
+