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