rust-lang/rust — pull request #17880 by pcwalton (2014-10-09 05:42:06+00:00)
Title: librustc: Forbid duplicate name bindings in the same parameter or type

parameter list.

This breaks code like:

fn f(a: int, a: int) { ... }
fn g(a: T) { ... }

Change this code to not use the same name for a parameter. For example:

fn f(a: int, b: int) { ... }
fn g(a: T) { ... }

Code like this is *not* affected, since `_` is not an identifier:

fn f(_: int, _: int) { ... } // OK

Closes #17568.

r? @alexcrichton
[breaking-change]