]> git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/deafult-generic-associated-type-bound.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / specialization / deafult-generic-associated-type-bound.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/deafult-generic-associated-type-bound.rs:3: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 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
12 --> $DIR/deafult-generic-associated-type-bound.rs:4:12
13 |
14 LL | #![feature(generic_associated_types)]
15 | ^^^^^^^^^^^^^^^^^^^^^^^^
16 |
17 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
18
19 error[E0277]: can't compare `T` with `T`
20 --> $DIR/deafult-generic-associated-type-bound.rs:19:5
21 |
22 LL | type U<'a>: PartialEq<&'a Self> where Self: 'a;
23 | ------------------- required by this bound in `X::U`
24 ...
25 LL | default type U<'a> = &'a T;
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `T == T`
27 |
28 = note: required because of the requirements on the impl of `PartialEq` for `&'a T`
29 help: consider further restricting this bound
30 |
31 LL | impl<T: 'static + std::cmp::PartialEq> X for T {
32 | ^^^^^^^^^^^^^^^^^^^^^
33
34 error: aborting due to previous error; 2 warnings emitted
35
36 For more information about this error, try `rustc --explain E0277`.