Sign in
rust
/
rust
/
HEAD
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
empty_loop_no_std.rs
blob: 1ea96abbcd8b07dd25ab9e1f92ce69f31e97f3b5 [
file
] [
log
] [
blame
]
//@compile-flags: -Clink-arg=-nostartfiles
#![
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
}