Closed andrey-yantsen closed 1 year ago
First of all, thank you for all the work! You have no idea how much my life has improved since I discovered rstest :)
rstest
The compilation of test below fails with error error[E0277]: can't compare '{integer}' with 'impl std::future::Future<Output = u8>':
error[E0277]: can't compare '{integer}' with 'impl std::future::Future<Output = u8>'
#[rstest::fixture] async fn fixture() -> u8 { 0 } #[rstest::rstest] #[awt] async fn bar(#[future] fixture: u8) { assert_eq!(0, fixture); fn baz() {} }
If you remove the fn baz() {} inner funciton, everything works as expected.
fn baz() {}
Sorry for late response .... I've missed it.
Really strange bug :smile:
First of all, thank you for all the work! You have no idea how much my life has improved since I discovered
rstest
:)The compilation of test below fails with error
error[E0277]: can't compare '{integer}' with 'impl std::future::Future<Output = u8>'
:If you remove the
fn baz() {}
inner funciton, everything works as expected.