Use associated_type_bounds where applicable - closes #61738

This commit is contained in:
Ilija Tovilo 2019-07-31 21:00:35 +02:00
parent d4abb08be6
commit 3a6a29b4ec
No known key found for this signature in database
GPG key ID: 3F123D0ADD448198
25 changed files with 169 additions and 124 deletions

View file

@ -50,8 +50,8 @@ impl Command {
}
pub fn args<I>(&mut self, args: I) -> &mut Command
where I: IntoIterator,
I::Item: AsRef<OsStr>,
where
I: IntoIterator<Item: AsRef<OsStr>>,
{
for arg in args {
self._arg(arg.as_ref());

View file

@ -11,6 +11,7 @@
#![feature(nll)]
#![feature(trusted_len)]
#![feature(mem_take)]
#![feature(associated_type_bounds)]
#![recursion_limit="256"]