mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
10 lines
201 B
Rust
10 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() {}
|