Sign in
rust
/
rust-clippy
/
refs/heads/beta
/
.
/
tests
/
ui
/
empty_loop_no_std.rs
blob: 6407bd678f9cae91ad1e868bc735fbd67223b315 [
file
] [
log
] [
blame
]
//@compile-flags: -Clink-arg=-nostartfiles
//@ignore-target: apple
#![
warn
(
clippy
::
empty_loop
)]
#![
crate_type
=
"lib"
]
#![
no_std
]
pub
fn
main
(
argc
:
isize
,
argv
:
*
const
*
const
u8
)
->
isize
{
// This should trigger the lint
loop
{}
//~^ empty_loop
}