summaryrefslogtreecommitdiffstats
path: root/tests/ui/no_crate_type.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/no_crate_type.stderr')
-rw-r--r--tests/ui/no_crate_type.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/no_crate_type.stderr b/tests/ui/no_crate_type.stderr
new file mode 100644
index 000000000..93da7c3e0
--- /dev/null
+++ b/tests/ui/no_crate_type.stderr
@@ -0,0 +1,8 @@
+error: malformed `crate_type` attribute input
+ --> $DIR/no_crate_type.rs:2:1
+ |
+LL | #![crate_type]
+ | ^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`
+
+error: aborting due to previous error
+