mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add a test with an empty crate name.
This error was untested.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// Ensure we reject `#![crate_name = ""]`.
|
||||
|
||||
#![crate_name = ""] //~ ERROR crate name must not be empty
|
||||
|
||||
fn main() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
error: crate name must not be empty
|
||||
--> $DIR/crate-name-empty.rs:3:1
|
||||
|
|
||||
LL | #![crate_name = ""]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Reference in New Issue
Block a user