librustc: Implement coercion for traits. r=nmatsakis
test: Remove `as @Trait`, `as ~Trait`, and `as &Trait` from the test suite.