]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/name-collision-in-trait-fn-sig.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[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 }