]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/assoc-const-ty-mismatch.stderr
Auto merge of #95295 - CAD97:layout-isize, r=scottmcm
[rust.git] / src / test / ui / associated-consts / assoc-const-ty-mismatch.stderr
1 error: mismatch in bind of associated constant, got type
2   --> $DIR/assoc-const-ty-mismatch.rs:23:15
3    |
4 LL | fn foo<F: Foo<N=usize>>() {}
5    |               ^^^^^^^
6    |
7 note: associated constant defined here does not match type
8   --> $DIR/assoc-const-ty-mismatch.rs:5:3
9    |
10 LL |   const N: usize;
11    |   ^^^^^^^^^^^^^^
12
13 error: mismatch in bind of associated type, got const
14   --> $DIR/assoc-const-ty-mismatch.rs:25:18
15    |
16 LL | fn foo2<F: FooTy<T=3usize>>() {}
17    |                  ^^^^^^^^
18    |
19 note: associated type defined here does not match const
20   --> $DIR/assoc-const-ty-mismatch.rs:9:3
21    |
22 LL |   type T;
23    |   ^^^^^^
24
25 error: aborting due to 2 previous errors
26