rust/src/test/ui/rust-2021/inherent-method-collision.rs

16 lines
269 B
Rust
Raw Normal View History

2021-06-04 19:31:18 +00:00
// Test that we do NOT warn for inherent methods invoked via `T::` form.
//
// check-pass
2021-06-29 14:53:44 +00:00
#![deny(future_prelude_collisions)]
2021-06-04 19:31:18 +00:00
pub struct MySeq {}
impl MySeq {
pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
}
fn main() {
MySeq::from_iter(Some(22));
}