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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/lint/lint-unnecessary-import-braces.rs

12 lines
221 B
Rust
Raw Normal View History

Update code with new lint names
2014-10-27 15:37:07 -07:00
#![deny(unused_import_braces)]
Add unnecessary_import_braces lint. The lint checks any unnecessary braces around one imported item like `use std::num::{abs};`. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-09-01 10:27:54 +09:00
Use non-2015 edition paths in tests that do not test for their resolution This allows for testing these tests on editions other than 2015
2025-06-03 10:03:42 +02:00
use crate::test::{A}; //~ ERROR braces around A is unnecessary
Add unnecessary_import_braces lint. The lint checks any unnecessary braces around one imported item like `use std::num::{abs};`. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-09-01 10:27:54 +09:00
mod test {
Use non-2015 edition paths in tests that do not test for their resolution This allows for testing these tests on editions other than 2015
2025-06-03 10:03:42 +02:00
use crate::test::{self}; // OK
use crate::test::{self as rename}; // OK
Add unnecessary_import_braces lint. The lint checks any unnecessary braces around one imported item like `use std::num::{abs};`. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-09-01 10:27:54 +09:00
pub struct A;
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6065ms 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