fork/rust

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

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

master
632 B26 linesraw
1error: expected associated constant bound, found type
2  --> $DIR/assoc-const-ty-mismatch.rs:23:15
3   |
4LL | fn foo<F: Foo<N=usize>>() {}
5   |               ^^^^^^^
6   |
7note: associated constant defined here
8  --> $DIR/assoc-const-ty-mismatch.rs:5:3
9   |
10LL |   const N: usize;
11   |   ^^^^^^^^^^^^^^
12
13error: expected associated type bound, found constant
14  --> $DIR/assoc-const-ty-mismatch.rs:25:18
15   |
16LL | fn foo2<F: FooTy<T=3usize>>() {}
17   |                  ^^^^^^^^
18   |
19note: associated type defined here
20  --> $DIR/assoc-const-ty-mismatch.rs:9:3
21   |
22LL |   type T;
23   |   ^^^^^^
24
25error: aborting due to 2 previous errors
26