Skip to content

Commit

Permalink
Make E0033 tests fit in 100 cols
Browse files Browse the repository at this point in the history
  • Loading branch information
munyari committed Aug 15, 2016
1 parent 80beeb3 commit a37e90a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/compile-fail/E0033.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ trait SomeTrait {
}

fn main() {
let trait_obj: &SomeTrait = SomeTrait; //~ ERROR E0425
//~^ ERROR E0038
//~| method `foo` has no receiver
//~| NOTE the trait `SomeTrait` cannot be made into an object
let trait_obj: &SomeTrait = SomeTrait;
//~^ ERROR E0425
//~| ERROR E0038
//~| method `foo` has no receiver
//~| NOTE the trait `SomeTrait` cannot be made into an object

let &invalid = trait_obj;
//~^ ERROR E0033
Expand Down

0 comments on commit a37e90a

Please sign in to comment.