Skip to content

Commit

Permalink
Add additional error note
Browse files Browse the repository at this point in the history
  • Loading branch information
munyari committed Aug 11, 2016
1 parent b9762f8 commit 80beeb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/compile-fail/E0033.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ 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 &invalid = trait_obj;
//~^ ERROR E0033
Expand Down

0 comments on commit 80beeb3

Please sign in to comment.