mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
12 lines
233 B
Rust
12 lines
233 B
Rust
#![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
|
|
}
|