<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/compile-fail/duplicate-parameter.rs, branch 1.6.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.6.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.6.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-03-15T16:08:21+00:00</updated>
<entry>
<title>Strip all leading/trailing newlines</title>
<updated>2015-03-15T16:08:21+00:00</updated>
<author>
<name>Tamir Duberstein</name>
<email>tamird@gmail.com</email>
</author>
<published>2015-03-14T23:29:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d51047ded072b412ec18a6f78c1fb80835a477f5'/>
<id>urn:sha1:d51047ded072b412ec18a6f78c1fb80835a477f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update compile fail tests to use isize.</title>
<updated>2015-01-08T16:02:24+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2015-01-08T10:54:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c70ce1424f380360dcc8d857c68d2df1a27b6fd'/>
<id>urn:sha1:0c70ce1424f380360dcc8d857c68d2df1a27b6fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>librustc: Forbid duplicate name bindings in the same parameter or type</title>
<updated>2014-10-09T05:41:23+00:00</updated>
<author>
<name>Patrick Walton</name>
<email>pcwalton@mimiga.net</email>
</author>
<published>2014-10-09T04:28:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=14988141952e29e1d46396e99cf286cd7aa9ee95'/>
<id>urn:sha1:14988141952e29e1d46396e99cf286cd7aa9ee95</id>
<content type='text'>
parameter list.

This breaks code like:

    fn f(a: int, a: int) { ... }
    fn g&lt;T,T&gt;(a: T) { ... }

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

    fn f(a: int, b: int) { ... }
    fn g&lt;T,U&gt;(a: T) { ... }

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

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

Closes #17568.

[breaking-change]
</content>
</entry>
</feed>
