]> git.proxmox.com Git - rustc.git/blame - src/test/ui/specialization/deafult-associated-type-bound-2.stderr
New upstream version 1.48.0~beta.8+dfsg1
[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
9
10error[E0277]: can't compare `&'static B` with `B`
11 --> $DIR/deafult-associated-type-bound-2.rs:16:5
12 |
13LL | type U: PartialEq<T>;
14 | --------------------- required by `X::U`
15...
16LL | default type U = &'static B;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&'static B == B`
18 |
1b1a35ee 19 = help: the trait `PartialEq<B>` is not implemented for `&'static B`
f035d41b
XL
20
21error: aborting due to previous error; 1 warning emitted
22
23For more information about this error, try `rustc --explain E0277`.