]> git.lizzy.rs Git - rust.git/commit
dropck: Rejectways trait bounds can indirectly access borrowed data.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 28 Apr 2015 08:06:23 +0000 (10:06 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 30 Apr 2015 12:27:53 +0000 (14:27 +0200)
commitdb88e5a498ff8a4c7aa6951095e2d217822b11bf
tree6d6a2043f42f74569ebeffdceefa1170b65eb61c
parentc76d66e9238840d96b1910ba57a839ef7902485c
dropck: Rejectways trait bounds can indirectly access borrowed data.

Namely, we need to catch cases like `trait Child : Parent { }` where
`Parent` itself defines methods.
src/librustc_typeck/check/dropck.rs