Skip to content

Commit 80beeb3

Browse files
committed
Add additional error note
1 parent b9762f8 commit 80beeb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/compile-fail/E0033.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fn main() {
1616
let trait_obj: &SomeTrait = SomeTrait; //~ ERROR E0425
1717
//~^ ERROR E0038
1818
//~| method `foo` has no receiver
19+
//~| NOTE the trait `SomeTrait` cannot be made into an object
1920

2021
let &invalid = trait_obj;
2122
//~^ ERROR E0033

0 commit comments

Comments
 (0)