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