about summary refs log tree commit diff
path: root/tests/ui/rust-2021/inherent-method-collision.rs
blob: 1dad62eb13ca2318333836737c3b1a4cea235526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test that we do NOT warn for inherent methods invoked via `T::` form.
//
//@ check-pass

#![deny(rust_2021_prelude_collisions)]

pub struct MySeq {}

impl MySeq {
    pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
}

fn main() {
    MySeq::from_iter(Some(22));
}