Skip to content

Commit

Permalink
Update expected compile error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenlib committed Mar 10, 2023
1 parent d2d87f2 commit ca2985a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/compile_fail/args_not_impl_default.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ note: required by a bound in `proptest::arbitrary::Arbitrary::Parameters`
--> $CARGO/proptest-1.1.0/src/arbitrary/traits.rs
|
| type Parameters: Default;
| ^^^^^^^ required by this bound in `proptest::arbitrary::Arbitrary::Parameters`
| ^^^^^^^ required by this bound in `Arbitrary::Parameters`
help: consider annotating `TestArgs` with `#[derive(Default)]`
|
2 | #[derive(Default)]
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/invalid_strategy.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error[E0271]: type mismatch resolving `<std::ops::Range<usize> as Strategy>::Value == u8`
error[E0271]: type mismatch resolving `<Range<usize> as Strategy>::Value == u8`
--> tests/compile_fail/invalid_strategy.rs:4:16
|
4 | #[strategy(0..10usize)]
| ^---------
| |
| expected `u8`, found `usize`
| this tail expression is of type `std::ops::Range<_>`
| this tail expression is of type `Range<usize>`
|
note: required by a bound in `_strategy_of_x`
--> tests/compile_fail/invalid_strategy.rs:5:8
Expand Down

0 comments on commit ca2985a

Please sign in to comment.