We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80beeb3 commit a37e90aCopy full SHA for a37e90a
src/test/compile-fail/E0033.rs
@@ -13,10 +13,11 @@ trait SomeTrait {
13
}
14
15
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
+ let trait_obj: &SomeTrait = SomeTrait;
+ //~^ ERROR E0425
+ //~| ERROR E0038
+ //~| method `foo` has no receiver
20
+ //~| NOTE the trait `SomeTrait` cannot be made into an object
21
22
let &invalid = trait_obj;
23
//~^ ERROR E0033
0 commit comments