rust/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr

16 lines
746 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: the trait bound `dyn Foo<(isize,), isize, Output=()>: Eq<dyn Foo<(isize,), Output=()>>` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/unboxed-closure-sugar-default.rs:21:5
2018-08-08 07:28:26 -05:00
|
LL | eq::< Foo<(isize,),isize,Output=()>, Foo(isize) >();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq<dyn Foo<(isize,), Output=()>>` is not implemented for `dyn Foo<(isize,), isize, Output=()>`
|
note: required by `eq`
2018-12-25 09:56:47 -06:00
--> $DIR/unboxed-closure-sugar-default.rs:14:1
2018-08-08 07:28:26 -05:00
|
LL | fn eq<A: ?Sized,B: ?Sized>() where A : Eq<B> { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.