]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type2-tait2.stderr
Rollup merge of #95438 - m-ou-se:sync-unsafe-cell, r=joshtriplett
[rust.git] / src / test / ui / impl-trait / nested-return-type2-tait2.stderr
1 error[E0277]: the trait bound `Sendable: Duh` is not satisfied
2   --> $DIR/nested-return-type2-tait2.rs:27:5
3    |
4 LL |     || 42
5    |     ^^^^^ the trait `Duh` is not implemented for `Sendable`
6    |
7 note: required because of the requirements on the impl of `Trait` for `[closure@$DIR/nested-return-type2-tait2.rs:27:5: 27:10]`
8   --> $DIR/nested-return-type2-tait2.rs:14:31
9    |
10 LL | impl<R: Duh, F: FnMut() -> R> Trait for F {
11    |                               ^^^^^     ^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.