fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB32 linesraw
1warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/specialization-unconstrained.rs:3:12
3   |
4LL | #![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
11error[E0282]: type annotations needed
12  --> $DIR/specialization-unconstrained.rs:14:22
13   |
14LL |    default type Id = T;
15   |                      ^ cannot infer type for associated type `<T as Default>::Id`
16
17error[E0284]: type annotations needed: cannot satisfy `<u32 as Default>::Id == ()`
18  --> $DIR/specialization-unconstrained.rs:20:5
19   |
20LL |     test::<u32, ()>();
21   |     ^^^^^^^^^^^^^^^ cannot satisfy `<u32 as Default>::Id == ()`
22   |
23note: required by a bound in `test`
24  --> $DIR/specialization-unconstrained.rs:17:20
25   |
26LL | fn test<T: Default<Id = U>, U>() {}
27   |                    ^^^^^^ required by this bound in `test`
28
29error: aborting due to 2 previous errors; 1 warning emitted
30
31Some errors have detailed explanations: E0282, E0284.
32For more information about an error, try `rustc --explain E0282`.