rust/tests/ui/trait-bounds/apit-unsized.rs
2023-06-15 12:00:57 +02:00

5 lines
125 B
Rust

fn foo(_: impl Iterator<Item = i32> + ?Sized) {} //~ ERROR [E0277]
fn bar(_: impl ?Sized) {} //~ ERROR [E0277]
fn main() {}