Skip to content

functions used as ... must have signature ... #16

@blackbeam

Description

@blackbeam

I've started getting two kinds of errors with stainless:

in expansion of describe!
error: functions used as tests must have signature fn() -> ()
...
in expansion of describe!
error: functions used as benches must have signature `fn(&mut Bencher) -> ()`

--pretty expanded shows me:

...
#[test]
#[allow(non_snake_case)]
fn should_handle_multi_resultset() -> () { ... }
...
#[bench]
fn simple_exec(bencher: &mut ::test::Bencher) -> () { ... }
...

which is looks OK to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions