Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
82ceec9d1d77f220dca3975c20fde90430fc1bbd
rust/tests/ui/lint/lint-non-snake-case-crate-bin.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
87 B
Rust
Raw Normal View History

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
Powered by Gitea Version: 1.24.6 Page: 8076ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API