]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2021/inherent-method-collision.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[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 }