]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/deafult-associated-type-bound-2.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / specialization / deafult-associated-type-bound-2.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/deafult-associated-type-bound-2.rs:2:12
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9    = help: consider using `min_specialization` instead, which is more stable and complete
10
11 error[E0277]: can't compare `&'static B` with `B`
12   --> $DIR/deafult-associated-type-bound-2.rs:16:22
13    |
14 LL |     default type U = &'static B;
15    |                      ^^^^^^^^^^ no implementation for `&'static B == B`
16    |
17    = help: the trait `PartialEq<B>` is not implemented for `&'static B`
18 note: required by a bound in `X::U`
19   --> $DIR/deafult-associated-type-bound-2.rs:6:13
20    |
21 LL |     type U: PartialEq<T>;
22    |             ^^^^^^^^^^^^ required by this bound in `X::U`
23 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
24    |
25 LL | impl<B: 'static, T> X<B> for T where &'static B: PartialEq<B> {
26    |                                ++++++++++++++++++++++++++++++
27
28 error: aborting due to previous error; 1 warning emitted
29
30 For more information about this error, try `rustc --explain E0277`.