]> git.proxmox.com Git - rustc.git/blame - tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / associated-consts / assoc-const-ty-mismatch.stderr
CommitLineData
4b012472
FG
1error: expected constant, found type
2 --> $DIR/assoc-const-ty-mismatch.rs:23:19
5099ac24 3 |
4b012472
FG
4LL | fn foo<F: Foo<N = usize>>() {}
5 | - ^^^^^ unexpected type
6 | |
7 | expected a constant because of this associated constant
5099ac24 8 |
4b012472
FG
9note: the associated constant is defined here
10 --> $DIR/assoc-const-ty-mismatch.rs:5:5
5099ac24 11 |
4b012472
FG
12LL | const N: usize;
13 | ^^^^^^^^^^^^^^
5099ac24 14
4b012472
FG
15error: expected type, found constant
16 --> $DIR/assoc-const-ty-mismatch.rs:25:22
5099ac24 17 |
4b012472
FG
18LL | fn foo2<F: FooTy<T = 3usize>>() {}
19 | - ^^^^^^ unexpected constant
20 | |
21 | expected a type because of this associated type
5099ac24 22 |
4b012472
FG
23note: the associated type is defined here
24 --> $DIR/assoc-const-ty-mismatch.rs:9:5
5099ac24 25 |
4b012472
FG
26LL | type T;
27 | ^^^^^^
5099ac24
FG
28
29error: aborting due to 2 previous errors
30