]> git.lizzy.rs Git - rust.git/commit
Fix issue #8763
authorLeah Hanson <astrieanna@gmail.com>
Thu, 14 Nov 2013 03:29:37 +0000 (21:29 -0600)
committerLeah Hanson <leah.a.hanson@gmail.com>
Sun, 24 Nov 2013 17:14:27 +0000 (11:14 -0600)
commite1d1ad34f7d28eeb2af2e17097615b74498a1511
treef7bf4802880a2071f0ed76115e36bc00cef6e422
parent314d6f693f9442ab40879b58f34c6d0afb76f447
Fix issue #8763

* added case & better error message for "impl trait for module"
* used better way to print the module
* switched from //error-pattern to //~ ERROR
* added compile-fail test trait-impl-for-module.rs
* revised compile-fail test trait-or-new-type-instead
    (the error message for the modified test is still unclear, but that's a different bug)
* added FIXME to trait-or-new-type-instead
src/librustc/middle/typeck/astconv.rs
src/test/compile-fail/trait-impl-for-module.rs [new file with mode: 0644]
src/test/compile-fail/trait-or-new-type-instead.rs