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

5 lines
125 B
Rust
Raw Normal View History

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