summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/name-collision-in-trait-fn-sig.rs
blob: fba4ffa1c6ed2fa7310abec52a133f3c7956b35d (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass
// This is currently stable behavior, which was almost accidentally made an
// error in #102161 since there is no test exercising it. I am not sure if
// this _should_ be the desired behavior, but at least we should know if it
// changes.

fn main() {}

trait Foo {
    fn fn_with_type_named_same_as_local_in_param(b: i32, b: i32);
}