We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32408cf commit 19ba219Copy full SHA for 19ba219
src/test/ui/rust-2021/inherent-method-collision.rs
@@ -0,0 +1,15 @@
1
+// Test that we do NOT warn for inherent methods invoked via `T::` form.
2
+//
3
+// check-pass
4
+
5
+#![deny(future_prelude_collision)]
6
7
+pub struct MySeq {}
8
9
+impl MySeq {
10
+ pub fn from_iter(_: impl IntoIterator<Item = u32>) {}
11
+}
12
13
+fn main() {
14
+ MySeq::from_iter(Some(22));
15
0 commit comments