We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9762f8 commit 80beeb3Copy full SHA for 80beeb3
src/test/compile-fail/E0033.rs
@@ -16,6 +16,7 @@ fn main() {
16
let trait_obj: &SomeTrait = SomeTrait; //~ ERROR E0425
17
//~^ ERROR E0038
18
//~| method `foo` has no receiver
19
+ //~| NOTE the trait `SomeTrait` cannot be made into an object
20
21
let &invalid = trait_obj;
22
//~^ ERROR E0033
0 commit comments