]> git.proxmox.com Git - rustc.git/blame - src/test/ui/specialization/deafult-associated-type-bound-2.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / specialization / deafult-associated-type-bound-2.stderr
CommitLineData
f035d41b
XL
1warning: 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 |
4LL | #![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
29967ef6 9 = help: consider using `min_specialization` instead, which is more stable and complete
f035d41b
XL
10
11error[E0277]: can't compare `&'static B` with `B`
12 --> $DIR/deafult-associated-type-bound-2.rs:16:5
13 |
14LL | type U: PartialEq<T>;
29967ef6 15 | ------------ required by this bound in `X::U`
f035d41b
XL
16...
17LL | default type U = &'static B;
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&'static B == B`
19 |
1b1a35ee 20 = help: the trait `PartialEq<B>` is not implemented for `&'static B`
6a06907d
XL
21help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
22 |
23LL | impl<B: 'static, T> X<B> for T where &'static B: PartialEq<B> {
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f035d41b
XL
25
26error: aborting due to previous error; 1 warning emitted
27
28For more information about this error, try `rustc --explain E0277`.