mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
467bc9ffd5
Fixes #111932
9 lines
201 B
Rust
9 lines
201 B
Rust
trait Foo: std::fmt::Debug {}
|
|
|
|
fn print_foos(foos: impl Iterator<Item = dyn Foo>) {
|
|
foos.for_each(|foo| { //~ ERROR [E0277]
|
|
println!("{:?}", foo); //~ ERROR [E0277]
|
|
});
|
|
}
|
|
|
|
fn main() {}
|