]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-83765.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / const-generics / issues / issue-83765.stderr
1 error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM`
2   --> $DIR/issue-83765.rs:5:5
3    |
4 LL |     const DIM: usize;
5    |     ^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires computing candidate for `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>`...
8   --> $DIR/issue-83765.rs:4:1
9    |
10 LL | trait TensorDimension {
11    | ^^^^^^^^^^^^^^^^^^^^^
12    = note: ...which again requires resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM`, completing the cycle
13 note: cycle used when computing candidate for `<LazyUpdim<'_, T, { T::DIM }, DIM> as TensorDimension>`
14   --> $DIR/issue-83765.rs:4:1
15    |
16 LL | trait TensorDimension {
17    | ^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.