1 # `universal_impl_trait`
3 The tracking issue for this feature is: [#34511].
5 [#34511]: https://github.com/rust-lang/rust/issues/34511
9 The `universal_impl_trait` feature extends the [`conservative_impl_trait`]
10 feature allowing the `impl Trait` syntax in arguments (universal
13 [`conservative_impl_trait`]: ./language-features/conservative-impl-trait.html
18 #![feature(universal_impl_trait)]
21 fn any_zero(values: impl IntoIterator<Item = i32>) -> bool {
22 for val in values { if val == 0 { return true; } }
28 let test2 = vec![1, 8, 42, -87, 60];
29 assert!(any_zero(test1));
30 assert!(bool::not(any_zero(test2)));