add inherent-method-collision test

This commit is contained in:
Niko Matsakis 2021-06-04 15:31:18 -04:00
parent 32408cf0d9
commit 19ba219e99

View File

@ -0,0 +1,15 @@
// Test that we do NOT warn for inherent methods invoked via `T::` form.
//
// check-pass
#![deny(future_prelude_collision)]
pub struct MySeq {}
impl MySeq {
pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
}
fn main() {
MySeq::from_iter(Some(22));
}