We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8f0fd commit 1a62663Copy full SHA for 1a62663
tests/ui/attributes/crate-name-empty.rs
@@ -0,0 +1,5 @@
1
+// Ensure we reject `#![crate_name = ""]`.
2
+
3
+#![crate_name = ""] //~ ERROR crate name must not be empty
4
5
+fn main() {}
tests/ui/attributes/crate-name-empty.stderr
@@ -0,0 +1,8 @@
+error: crate name must not be empty
+ --> $DIR/crate-name-empty.rs:3:1
+ |
+LL | #![crate_name = ""]
+ | ^^^^^^^^^^^^^^^^^^^
6
7
+error: aborting due to 1 previous error
8
0 commit comments