]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rust-2021/inherent-method-collision.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / rust-2021 / inherent-method-collision.rs
CommitLineData
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
7pub struct MySeq {}
8
9impl MySeq {
10 pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
11}
12
13fn main() {
14 MySeq::from_iter(Some(22));
15}