fork/rust

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

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

master
1.3 KiB35 linesraw
1error[E0658]: trait aliases are experimental
2  --> $DIR/generic-default-in-dyn.rs:1:1
3   |
4LL | trait SendEqAlias<T> = PartialEq;
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #41517 <https://github.com/rust-lang/rust/issues/41517> for more information
8   = help: add `#![feature(trait_alias)]` to the crate attributes to enable
9
10error[E0393]: the type parameter `Rhs` must be explicitly specified
11  --> $DIR/generic-default-in-dyn.rs:4:19
12   |
13LL | struct Foo<T>(dyn SendEqAlias<T>);
14   |                   ^^^^^^^^^^^^^^ missing reference to `Rhs`
15  --> $SRC_DIR/core/src/cmp.rs:LL:COL
16   |
17   = note: type parameter `Rhs` must be specified for this
18   |
19   = note: because of the default `Self` reference, type parameters must be specified on object types
20
21error[E0393]: the type parameter `Rhs` must be explicitly specified
22  --> $DIR/generic-default-in-dyn.rs:7:19
23   |
24LL | struct Bar<T>(dyn SendEqAlias<T>, T);
25   |                   ^^^^^^^^^^^^^^ missing reference to `Rhs`
26  --> $SRC_DIR/core/src/cmp.rs:LL:COL
27   |
28   = note: type parameter `Rhs` must be specified for this
29   |
30   = note: because of the default `Self` reference, type parameters must be specified on object types
31
32error: aborting due to 3 previous errors
33
34Some errors have detailed explanations: E0393, E0658.
35For more information about an error, try `rustc --explain E0393`.