]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-22312.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-22312.stderr
1 error[E0605]: non-primitive cast: `Self` as `&dyn Index<usize, Output = <Self as Index<usize>>::Output>`
2 --> $DIR/issue-22312.rs:11:24
3 |
4 LL | let indexer = &(*self as &dyn Index<usize, Output = <Self as Index<usize>>::Output>);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid cast
6 |
7 help: consider borrowing the value
8 |
9 LL | let indexer = &(&*self as &dyn Index<usize, Output = <Self as Index<usize>>::Output>);
10 | +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0605`.