]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/generic_const_exprs/issue-69654.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / const-generics / generic_const_exprs / issue-69654.stderr
1 error[E0423]: expected value, found type parameter `T`
2 --> $DIR/issue-69654.rs:5:25
3 |
4 LL | impl<T> Bar<T> for [u8; T] {}
5 | - ^ not a value
6 | |
7 | found this type parameter
8
9 error[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 |
12 LL | struct Foo<const N: usize> {}
13 | -------------------------- function or associated item `foo` not found for this struct
14 ...
15 LL | Foo::foo();
16 | ^^^ function or associated item cannot be called on `Foo<_>` due to unsatisfied trait bounds
17 |
18 = note: the following trait bounds were not satisfied:
19 `[u8; _]: Bar<[(); _]>`
20
21 error: aborting due to 2 previous errors
22
23 Some errors have detailed explanations: E0423, E0599.
24 For more information about an error, try `rustc --explain E0423`.