You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fntest(it:&mutIterator<Item=()>){for _ in it {}}fnmain(){}
Output
for.rs:2:14:2:16 error: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
for.rs:2 for _ in it {}
^~
for.rs:2:14:2:16 error: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
for.rs:2 for _ in it {}
^~
for.rs:2:14:2:16 error: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
for.rs:2 for _ in it {}
^~
for.rs:1:1:3:2 help: consider using an explicit lifetime parameter as shown:fntest<'a>(it:&'a mut Iterator<Item = ()>)for.rs:1 fn test(it:&mutIterator<Item=()>){for.rs:2for _ in it {}
for.rs:3}
error: aborting due to 3previous errors