rust/tests/ui/impl-trait/explicit-generic-args-with-.../explicit-generic-args.rs

8 lines
103 B
Rust

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