debian/missing-sources/nalgebra/tests/macros/trybuild/stack_incompatible_block_dimensions2.rs
raw| 1 | use nalgebra::{matrix, stack}; |
| 2 | |
| 3 | fn main() { |
| 4 | // Use multi-letter names for checking that the reported span comes out correctly |
| 5 | let a11 = matrix![1, 2; |
| 6 | 3, 4]; |
| 7 | let a12 = matrix![5, 6; |
| 8 | 7, 8]; |
| 9 | let a21 = matrix![9, 10]; |
| 10 | let a22 = matrix![11, 12; |
| 11 | 13, 14]; |
| 12 | stack![a11, a12; |
| 13 | a21, a22]; |
| 14 | } |