mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
16 lines
273 B
Rust
16 lines
273 B
Rust
// 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));
|
|
}
|