Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Sep 24, 2022
1 parent 3d7e9a7 commit e87fcc0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/resolve/name-collision-in-trait-fn-sig.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,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);
}

0 comments on commit e87fcc0

Please sign in to comment.