diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 10:51:42 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 16:14:27 +1100 | 
| commit | 1a6266340e53e3f663b49f71a14461dafa47de47 (patch) | |
| tree | 8c220988e28ee4f325a8ed0e35bc00e9b039312e /tests/ui/attributes/crate-name-empty.rs | |
| parent | aa8f0fd7163a2f23aa958faed30c9c2b77b934a5 (diff) | |
| download | rust-1a6266340e53e3f663b49f71a14461dafa47de47.tar.gz rust-1a6266340e53e3f663b49f71a14461dafa47de47.zip | |
Add a test with an empty crate name.
This error was untested.
Diffstat (limited to 'tests/ui/attributes/crate-name-empty.rs')
| -rw-r--r-- | tests/ui/attributes/crate-name-empty.rs | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/tests/ui/attributes/crate-name-empty.rs b/tests/ui/attributes/crate-name-empty.rs new file mode 100644 index 00000000000..dfba77a52de --- /dev/null +++ b/tests/ui/attributes/crate-name-empty.rs @@ -0,0 +1,5 @@ +// Ensure we reject `#![crate_name = ""]`. + +#![crate_name = ""] //~ ERROR crate name must not be empty + +fn main() {} | 
