]> git.lizzy.rs Git - rust.git/blob - tests/ui/unboxed-closures/unboxed-closure-sugar-default.stderr
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[rust.git] / tests / ui / unboxed-closures / unboxed-closure-sugar-default.stderr
1 error[E0277]: the trait bound `dyn Foo<(isize,), isize, Output = ()>: Eq<dyn Foo<(isize,), Output = ()>>` is not satisfied
2   --> $DIR/unboxed-closure-sugar-default.rs:21:10
3    |
4 LL |     eq::<dyn Foo<(isize,), isize, Output=()>, dyn Foo(isize)>();
5    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq<dyn Foo<(isize,), Output = ()>>` is not implemented for `dyn Foo<(isize,), isize, Output = ()>`
6    |
7 note: required by a bound in `eq`
8   --> $DIR/unboxed-closure-sugar-default.rs:14:40
9    |
10 LL | fn eq<A: ?Sized,B: ?Sized>() where A : Eq<B> { }
11    |                                        ^^^^^ required by this bound in `eq`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.