Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
lint
/
unused
/
unused-supertrait.rs
blob: 64a8e5204579c679605994794cff50038ab58db1 [
file
] [
log
] [
blame
]
#![
deny
(
unused_must_use
)]
fn
it
()
->
impl
ExactSizeIterator
<
Item
=
()>
{
let
x
:
Box
<
dyn
ExactSizeIterator
<
Item
=
()>>
=
todo
!();
x
}
fn
main
()
{
it
();
//~^ ERROR unused implementer of `Iterator` that must be used
}