This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
82ceec9d1d77f220dca3975c20fde90430fc1bbd
rust
/
tests
/
ui
/
lint
/
lint-non-snake-case-crate-bin.rs
7 lines
87 B
Rust
Raw
Normal View
History
Unescape
Escape
Don't lint snake-case on executable crate name Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2023-05-03 14:53:54 +03:00
//@ check-pass
Lint non-snake-case crate names Passing a non-snake-case name to #![crate_name] or --crate-name will now yield a warning from the `non_snake_case` lint.
2015-04-18 13:39:10 +12:00
#![
crate_name =
"
NonSnakeCase
"
]
Don't lint snake-case on executable crate name Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2023-05-03 14:53:54 +03:00
Lint non-snake-case crate names Passing a non-snake-case name to #![crate_name] or --crate-name will now yield a warning from the `non_snake_case` lint.
2015-04-18 13:39:10 +12:00
#![
deny(non_snake_case)
]
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink