]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/name-collision-in-trait-fn-sig.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / name-collision-in-trait-fn-sig.rs
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 }