]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | // Test that we do NOT warn for inherent methods invoked via `T::` form. |
2 | // | |
3 | // check-pass | |
4 | ||
5 | #![deny(rust_2021_prelude_collisions)] | |
6 | ||
7 | pub struct MySeq {} | |
8 | ||
9 | impl MySeq { | |
10 | pub fn from_iter(_: impl IntoIterator<Item = u32>) {} | |
11 | } | |
12 | ||
13 | fn main() { | |
14 | MySeq::from_iter(Some(22)); | |
15 | } |