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

8 lines
102 B
Rust

// check-pass
fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
fn main() {
foo::<str>("".to_string());
}