#![feature(explicit_generic_args_with_impl_trait)] fn foo(_f: impl AsRef) {} fn main() { foo::("".to_string()); //~ ERROR E0107 }