rust/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.rs
2023-01-11 09:32:08 +00:00

6 lines
111 B
Rust

fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
fn main() {
foo::<str, String>("".to_string()); //~ ERROR E0107
}