about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/ip_constant_from_external.rs
blob: 7fd27022f1274e1e143092cb02ff0581ccd971d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@error-in-other-file: hand-coded well-known IP address
//@no-rustfix
#![warn(clippy::ip_constant)]

fn external_constant_test() {
    let _ = include!("localhost.txt");
    // lint in external file `localhost.txt`
}

fn main() {
    external_constant_test();
}