fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB30 linesraw
1error[E0423]: expected value, found type parameter `T`
2  --> $DIR/issue-69654.rs:5:25
3   |
4LL | impl<T> Bar<T> for [u8; T] {}
5   |      -                  ^ not a value
6   |      |
7   |      found this type parameter
8
9error[E0599]: the function or associated item `foo` exists for struct `Foo<_>`, but its trait bounds were not satisfied
10  --> $DIR/issue-69654.rs:17:10
11   |
12LL | struct Foo<const N: usize> {}
13   | -------------------------- function or associated item `foo` not found for this struct
14...
15LL |     Foo::foo();
16   |          ^^^ function or associated item cannot be called on `Foo<_>` due to unsatisfied trait bounds
17   |
18note: trait bound `[u8; _]: Bar<[(); _]>` was not satisfied
19  --> $DIR/issue-69654.rs:11:14
20   |
21LL | impl<const N: usize> Foo<N>
22   |                      ------
23LL | where
24LL |     [u8; N]: Bar<[(); N]>,
25   |              ^^^^^^^^^^^^ unsatisfied trait bound introduced here
26
27error: aborting due to 2 previous errors
28
29Some errors have detailed explanations: E0423, E0599.
30For more information about an error, try `rustc --explain E0423`.