Add additional error note

This commit is contained in:
Panashe M. Fundira 2016-08-11 14:03:38 -04:00
parent b9762f8b8c
commit 80beeb3574
No known key found for this signature in database
GPG key ID: ABD6E90F51BF74B5

View file

@ -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