2020-09-09 02:43:53 -05:00
|
|
|
error[E0423]: expected value, found type parameter `T`
|
|
|
|
--> $DIR/issue-69654.rs:5:25
|
|
|
|
|
|
|
|
|
LL | impl<T> Bar<T> for [u8; T] {}
|
2022-08-16 14:53:06 -05:00
|
|
|
| - ^ not a value
|
|
|
|
| |
|
|
|
|
| found this type pararmeter
|
2020-09-09 02:43:53 -05:00
|
|
|
|
2022-07-18 18:25:14 -05:00
|
|
|
error[E0599]: the function or associated item `foo` exists for struct `Foo<_>`, but its trait bounds were not satisfied
|
2021-01-24 13:08:12 -06:00
|
|
|
--> $DIR/issue-69654.rs:17:10
|
|
|
|
|
|
|
|
|
LL | struct Foo<const N: usize> {}
|
2022-07-01 18:47:26 -05:00
|
|
|
| -------------------------- function or associated item `foo` not found for this struct
|
2021-01-24 13:08:12 -06:00
|
|
|
...
|
|
|
|
LL | Foo::foo();
|
2022-07-18 18:25:14 -05:00
|
|
|
| ^^^ function or associated item cannot be called on `Foo<_>` due to unsatisfied trait bounds
|
2021-01-24 13:08:12 -06:00
|
|
|
|
|
2021-03-15 17:10:24 -05:00
|
|
|
= note: the following trait bounds were not satisfied:
|
2021-01-24 13:08:12 -06:00
|
|
|
`[u8; _]: Bar<[(); _]>`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-09-09 02:43:53 -05:00
|
|
|
|
2021-01-24 13:08:12 -06:00
|
|
|
Some errors have detailed explanations: E0423, E0599.
|
|
|
|
For more information about an error, try `rustc --explain E0423`.
|