2024-10-04 09:10:28 -05:00
|
|
|
error[E0782]: expected a type, found a trait
|
2024-08-24 14:03:51 -05:00
|
|
|
--> $DIR/suggest-dyn-on-bare-trait-in-pat.rs:11:9
|
|
|
|
|
|
|
|
|
LL | Trait::CONST => {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-10-04 09:10:28 -05:00
|
|
|
help: you can add the `dyn` keyword if you want a trait object
|
2024-08-24 14:03:51 -05:00
|
|
|
|
|
|
|
|
LL | <dyn Trait>::CONST => {}
|
|
|
|
| ++++ +
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0782`.
|