mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 19:43:20 +00:00
c1c2c3e60c
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
22 lines
389 B
Rust
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 {}
|
|
}
|