We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d7e9a7 commit e87fcc0Copy full SHA for e87fcc0
src/test/ui/resolve/name-collision-in-trait-fn-sig.rs
@@ -0,0 +1,11 @@
1
+// check-pass
2
+// This is currently stable behavior, which was almost accidentally made an
3
+// error in #102161 since there is no test exercising it. I am not sure if
4
+// this _should_ be the desired behavior, but at least we should know if it
5
+// changes.
6
+
7
+fn main() {}
8
9
+trait Foo {
10
+ fn fn_with_type_named_same_as_local_in_param(b: i32, b: i32);
11
+}
0 commit comments