rust/tests/ui/trait-bounds/apit-unsized.rs

5 lines
125 B
Rust

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