fork/rust

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

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

master
1.4 KiB47 linesraw
1error: expected lifetime, type, or constant, found keyword `const`
2  --> $DIR/issue-89013.rs:9:14
3   |
4LL | impl Foo<N = const 3> for Bar {
5   |              ^^^^^
6   |
7help: the `const` keyword is only needed in the definition of the type
8   |
9LL - impl Foo<N = const 3> for Bar {
10LL + impl Foo<N = 3> for Bar {
11   |
12
13error[E0658]: associated const equality is incomplete
14  --> $DIR/issue-89013.rs:9:10
15   |
16LL | impl Foo<N = const 3> for Bar {
17   |          ^^^^^^^^^^^
18   |
19   = note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
20   = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
21
22error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
23  --> $DIR/issue-89013.rs:9:6
24   |
25LL | impl Foo<N = const 3> for Bar {
26   |      ^^^ expected 1 generic argument
27   |
28note: trait defined here, with 1 generic parameter: `N`
29  --> $DIR/issue-89013.rs:1:7
30   |
31LL | trait Foo<const N: usize> {
32   |       ^^^ --------------
33help: add missing generic argument
34   |
35LL | impl Foo<N, N = const 3> for Bar {
36   |          ++
37
38error[E0229]: associated type bindings are not allowed here
39  --> $DIR/issue-89013.rs:9:10
40   |
41LL | impl Foo<N = const 3> for Bar {
42   |          ^^^^^^^^^^^ associated type not allowed here
43
44error: aborting due to 4 previous errors
45
46Some errors have detailed explanations: E0107, E0229, E0658.
47For more information about an error, try `rustc --explain E0107`.