Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
src
/
tools
/
clippy
/
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
}