2021-06-04 14:31:18 -05:00
|
|
|
// Test that we do NOT warn for inherent methods invoked via `T::` form.
|
|
|
|
//
|
|
|
|
//@ check-pass
|
|
|
|
|
2021-07-01 06:35:33 -05:00
|
|
|
#![deny(rust_2021_prelude_collisions)]
|
2021-06-04 14:31:18 -05:00
|
|
|
|
|
|
|
pub struct MySeq {}
|
|
|
|
|
|
|
|
impl MySeq {
|
|
|
|
pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
MySeq::from_iter(Some(22));
|
|
|
|
}
|