1 error[E0308]: mismatched types
2 --> $DIR/return-impl-trait.rs:15:5
4 LL | fn bar<T: Trait + std::marker::Sync>() -> T
7 | | expected `T` because of return type
8 | this type parameter help: consider using an impl return type: `impl Trait + std::marker::Sync + Send`
11 | ^^ expected type parameter `T`, found `()`
13 = note: expected type parameter `T`
16 error[E0308]: mismatched types
17 --> $DIR/return-impl-trait.rs:23:5
19 LL | fn other_bounds<T>() -> T
22 | | expected `T` because of return type
23 | | help: consider using an impl return type: `impl Trait`
27 | ^^ expected type parameter `T`, found `()`
29 = note: expected type parameter `T`
32 error: aborting due to 2 previous errors
34 For more information about this error, try `rustc --explain E0308`.