1 error[E0423]: expected value, found trait `SomeTrait`
2 --> $DIR/E0033.rs:16:33
4 16 | let trait_obj: &SomeTrait = SomeTrait;
5 | ^^^^^^^^^ not a value
7 error[E0038]: the trait `SomeTrait` cannot be made into an object
8 --> $DIR/E0033.rs:16:20
10 16 | let trait_obj: &SomeTrait = SomeTrait;
11 | ^^^^^^^^^^ the trait `SomeTrait` cannot be made into an object
13 = note: method `foo` has no receiver
15 error[E0033]: type `&SomeTrait` cannot be dereferenced
16 --> $DIR/E0033.rs:21:9
18 21 | let &invalid = trait_obj;
19 | ^^^^^^^^ type `&SomeTrait` cannot be dereferenced
21 error: aborting due to 3 previous errors