fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0423]: expected value, found trait `SomeTrait` 2 --> $DIR/E0033.rs:6:37 3 | 4LL | let trait_obj: &dyn SomeTrait = SomeTrait; 5 | ^^^^^^^^^ not a value 6 7error[E0038]: the trait `SomeTrait` cannot be made into an object 8 --> $DIR/E0033.rs:6:20 9 | 10LL | fn foo(); 11 | --- associated function `foo` has no `self` parameter 12... 13LL | let trait_obj: &dyn SomeTrait = SomeTrait; 14 | ^^^^^^^^^^^^^^ the trait `SomeTrait` cannot be made into an object 15 16error[E0033]: type `&dyn SomeTrait` cannot be dereferenced 17 --> $DIR/E0033.rs:10:9 18 | 19LL | let &invalid = trait_obj; 20 | ^^^^^^^^ type `&dyn SomeTrait` cannot be dereferenced 21 22error: aborting due to 3 previous errors 23 24Some errors have detailed explanations: E0033, E0038, E0423. 25For more information about an error, try `rustc --explain E0033`.