summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs
blob: 99e0931ab950dcc9f08f2bf4cc3816ac45e3bae8 (plain)
1
2
3
4
5
6
7
// check-pass

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

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