diff options
| author | bors <bors@rust-lang.org> | 2014-07-04 04:56:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-04 04:56:16 +0000 |
| commit | 1bff1ff810dcfa8064c11e2b84473f053d1f69f1 (patch) | |
| tree | 17705fe81d6cf0a5365c0a870c1260b5e56a2403 /src/test/compile-fail/dup-struct-enum-struct-variant.rs | |
| parent | d623a8bf3c530b900a69c059568079d5cbb4d6b8 (diff) | |
| parent | c3ae64a5cff47edcbe73885bc00e715d082ef5ec (diff) | |
| download | rust-1bff1ff810dcfa8064c11e2b84473f053d1f69f1.tar.gz rust-1bff1ff810dcfa8064c11e2b84473f053d1f69f1.zip | |
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
Diffstat (limited to 'src/test/compile-fail/dup-struct-enum-struct-variant.rs')
0 files changed, 0 insertions, 0 deletions
