]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2021/inherent-method-collision.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / rust-2021 / inherent-method-collision.rs
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 }