Add additional error note
This commit is contained in:
parent
b9762f8b8c
commit
80beeb3574
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue