blob: 9c94b228f300ee9f8981765766eae707b44c408d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0782]: expected a type, found a trait
--> tests/ui/bare-trait-object.rs:11:16
|
11 | impl Trait for Send + Sync {
| ^^^^^^^^^^^
|
help: you can add the `dyn` keyword if you want a trait object
|
11 | impl Trait for dyn Send + Sync {
| +++
help: alternatively use a blanket implementation to implement `Trait` for all types that also implement `Send + Sync`
|
11 - impl Trait for Send + Sync {
11 + impl<T: Send + Sync> Trait for T {
|
|