]> git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/default-associated-type-bound-2.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / specialization / default-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/default-associated-type-bound-2.rs:2:12
3 |
4 LL | #![feature(specialization)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8 = help: consider using `min_specialization` instead, which is more stable and complete
9 = note: `#[warn(incomplete_features)]` on by default
10
11 error[E0277]: can't compare `&'static B` with `B`
12 --> $DIR/default-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/default-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` clause, 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`.