rust-clippy/tests/ui-toml/min_ident_chars/min_ident_chars.rs
Ethiraric c1c2c3e60c Ignore imported items in min_ident_chars
Suppress the `min_ident_chars` warning for items whose name we cannot
control. Do not warn for `use a::b`, but warn for `use a::b as c`, since
`c` is a local identifier.

Fixes #12232
2024-02-13 19:14:12 +01:00

22 lines
389 B
Rust

//@aux-build:extern_types.rs
#![allow(nonstandard_style, unused)]
#![warn(clippy::min_ident_chars)]
extern crate extern_types;
use extern_types::{Aaa, LONGER, M, N as W};
pub const N: u32 = 0;
pub const LONG: u32 = 32;
struct Owo {
Uwu: u128,
aaa: Aaa,
}
fn main() {
let wha = 1;
let vvv = 1;
let uuu = 1;
let (mut a, mut b) = (1, 2);
for i in 0..1000 {}
}