rust/src/test/compile-fail
bors 1bff1ff810 auto merge of #15356 : pcwalton/rust/wrong-implementor, r=alexcrichton
parameters.

This can break code that mistakenly used type parameters in place of
`Self`. For example, this will break:

    trait Foo {
        fn bar<X>(u: X) -> Self {
            u
        }
    }

Change this code to not contain a type error. For example:

    trait Foo {
        fn bar<X>(_: X) -> Self {
            self
        }
    }

Closes #15172.

[breaking-change]

r? @alexcrichton
2014-07-04 04:56:16 +00:00
..
2014-05-04 22:35:21 -07:00
2014-05-15 23:22:06 -07:00
2014-06-20 17:41:19 +02:00
2014-06-20 17:41:19 +02:00
2014-04-08 00:03:11 -07:00
2014-05-18 15:30:41 +09:00
2014-05-11 01:13:02 -07:00
2014-05-27 11:11:15 -07:00
2014-04-10 15:21:59 -07:00
2014-02-27 18:09:35 +01:00
2014-06-24 17:23:16 -07:00
2014-05-27 11:11:15 -07:00
2014-06-28 09:30:44 +02:00
2014-05-28 08:35:41 -07:00
2014-06-09 17:46:53 -07:00
2014-06-24 17:19:19 -07:00
2014-06-13 13:53:55 -07:00
2014-06-24 17:22:48 -07:00
2014-06-24 17:19:19 -07:00
2014-06-24 11:36:28 -07:00
2014-06-24 11:36:28 -07:00
2014-06-18 22:22:26 -07:00
2014-05-28 12:42:21 -07:00
2014-03-28 10:34:02 +01:00
2014-05-27 11:11:15 -07:00
2014-06-24 17:22:48 -07:00
2014-05-28 12:42:21 -07:00
2014-04-08 00:03:11 -07:00
2014-06-24 18:57:01 -07:00
2014-03-28 10:34:02 +01:00
2014-06-07 23:46:32 -07:00