summaryrefslogtreecommitdiffstats
path: root/tests/ui/crate-name-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/crate-name-mismatch.stderr')
-rw-r--r--tests/ui/crate-name-mismatch.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/crate-name-mismatch.stderr b/tests/ui/crate-name-mismatch.stderr
new file mode 100644
index 000000000..96618570d
--- /dev/null
+++ b/tests/ui/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:3:1
+ |
+LL | #![crate_name = "bar"]
+ | ^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+