about summary refs log tree commit diff
path: root/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs
blob: a48e870e982d4d678991c4fb22d3dd89912fcff3 (plain)
1
2
3
4
5
6
7
//@ check-pass

fn foo<T: ?Sized>(_f: impl AsRef<T>) {}

fn main() {
    foo::<str>("".to_string());
}