2023-11-24 02:53:10 -06:00
|
|
|
error: expected constant, found type
|
|
|
|
--> $DIR/assoc-const-ty-mismatch.rs:23:19
|
2022-01-28 12:14:27 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
LL | fn foo<F: Foo<N = usize>>() {}
|
|
|
|
| - ^^^^^ unexpected type
|
|
|
|
| |
|
|
|
|
| expected a constant because of this associated constant
|
2022-02-01 09:28:31 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
note: the associated constant is defined here
|
|
|
|
--> $DIR/assoc-const-ty-mismatch.rs:5:5
|
2022-02-01 09:28:31 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
LL | const N: usize;
|
|
|
|
| ^^^^^^^^^^^^^^
|
2022-01-28 12:14:27 -06:00
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
error: expected type, found constant
|
|
|
|
--> $DIR/assoc-const-ty-mismatch.rs:25:22
|
2022-01-28 12:14:27 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
LL | fn foo2<F: FooTy<T = 3usize>>() {}
|
|
|
|
| - ^^^^^^ unexpected constant
|
|
|
|
| |
|
|
|
|
| expected a type because of this associated type
|
2022-02-01 09:28:31 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
note: the associated type is defined here
|
|
|
|
--> $DIR/assoc-const-ty-mismatch.rs:9:5
|
2022-02-01 09:28:31 -06:00
|
|
|
|
|
2023-11-24 02:53:10 -06:00
|
|
|
LL | type T;
|
|
|
|
| ^^^^^^
|
2022-01-28 12:14:27 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|