Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
ip_constant_from_external.rs
blob: 7fd27022f1274e1e143092cb02ff0581ccd971d1 [
file
] [
log
] [
blame
]
//@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
();
}