Skip to content

Commit

Permalink
fix trybuild tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jun 23, 2024
1 parent 5b05ed5 commit b6650da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion tests/macros/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use nalgebra::{
SMatrixViewMut, Scalar, U2,
};
use nalgebra_macros::vector;
use num_complex::Complex;
use num_traits::Zero;

/// Simple implementation that stacks dynamic matrices.
Expand Down
4 changes: 2 additions & 2 deletions tests/macros/trybuild/dmatrix_mismatched_dimensions.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Unexpected number of entries in row 1. Expected 3, found 2 entries.
--> $DIR/dmatrix_mismatched_dimensions.rs:5:13
--> tests/macros/trybuild/dmatrix_mismatched_dimensions.rs:5:13
|
5 | 4, 5];
| ^
| ^^^^
4 changes: 2 additions & 2 deletions tests/macros/trybuild/matrix_mismatched_dimensions.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Unexpected number of entries in row 1. Expected 3, found 2 entries.
--> $DIR/matrix_mismatched_dimensions.rs:5:13
--> tests/macros/trybuild/matrix_mismatched_dimensions.rs:5:13
|
5 | 4, 5];
| ^
| ^^^^
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ error[E0277]: the trait bound `ShapeConstraint: SameNumberOfColumns<Const<2>, Co
| ^^^ the trait `SameNumberOfColumns<Const<2>, Const<3>>` is not implemented for `ShapeConstraint`
|
= help: the following other types implement trait `SameNumberOfColumns<D1, D2>`:
<ShapeConstraint as SameNumberOfColumns<Dyn, D>>
<ShapeConstraint as SameNumberOfColumns<D, Dyn>>
<ShapeConstraint as SameNumberOfColumns<D, D>>
<ShapeConstraint as SameNumberOfColumns<D, Dyn>>
<ShapeConstraint as SameNumberOfColumns<Dyn, D>>
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ error[E0277]: the trait bound `ShapeConstraint: SameNumberOfRows<Const<1>, Const
| ^^^ the trait `SameNumberOfRows<Const<1>, Const<2>>` is not implemented for `ShapeConstraint`
|
= help: the following other types implement trait `SameNumberOfRows<D1, D2>`:
<ShapeConstraint as SameNumberOfRows<Dyn, D>>
<ShapeConstraint as SameNumberOfRows<D, Dyn>>
<ShapeConstraint as SameNumberOfRows<D, D>>
<ShapeConstraint as SameNumberOfRows<D, Dyn>>
<ShapeConstraint as SameNumberOfRows<Dyn, D>>
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
Expand Down

0 comments on commit b6650da

Please sign in to comment.