error: Expected 0 arguments but found 1 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:5:13 | 5 | #[bench::id(42)] | ^^ error: Expected 0 arguments but found 1 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:6:18 | 6 | #[benches::multi(42)] | ^^ error: Expected 1 arguments but found 0 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:10:1 | 10 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ | = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error: Expected 1 arguments but found 0 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:14:1 | 14 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ | = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error: Expected 1 arguments but found 2 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:20:13 | 20 | #[bench::id(42, 8)] | ^^ error: Expected 1 arguments but found 2 = help: This argument is expected to have the same amount of parameters as the benchmark function --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:24:18 | 24 | #[benches::multi((42, 8))] | ^^^^^^^ error[E0423]: expected function, found module `bench5::bench5` --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:52:5 | 52 | bench5::bench5(); | ^^^^^^^^^^^^^^ not a function | note: function `crate::bench5::__iai_callgrind_wrapper_mod::bench5` exists but is inaccessible --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:37:1 | 37 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ not accessible = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0423]: expected function, found module `bench6::bench6` --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:54:5 | 54 | bench6::bench6(); | ^^^^^^^^^^^^^^ not a function | note: function `crate::bench6::__iai_callgrind_wrapper_mod::bench6` exists but is inaccessible --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:43:1 | 43 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ not accessible = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0423]: expected function, found module `bench7::bench7` --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:56:5 | 56 | bench7::bench7(); | ^^^^^^^^^^^^^^ not a function | note: function `crate::bench7::__iai_callgrind_wrapper_mod::bench7` exists but is inaccessible --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:46:1 | 46 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ not accessible = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0603]: module import `bench5` is private --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:52:13 | 52 | bench5::bench5(); | ^^^^^^ private module import | note: the module import `bench5` is defined here... --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:37:1 | 37 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ note: ...and refers to the module `bench5` which is defined here --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:37:1 | 37 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0603]: module import `bench6` is private --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:54:13 | 54 | bench6::bench6(); | ^^^^^^ private module import | note: the module import `bench6` is defined here... --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:43:1 | 43 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ note: ...and refers to the module `bench6` which is defined here --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:43:1 | 43 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0603]: module import `bench7` is private --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:56:13 | 56 | bench7::bench7(); | ^^^^^^ private module import | note: the module import `bench7` is defined here... --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:46:1 | 46 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ note: ...and refers to the module `bench7` which is defined here --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:46:1 | 46 | #[library_benchmark] | ^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `library_benchmark` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:29:13 | 29 | #[bench::id("hello")] | ^^^^^^^ | | | expected `u8`, found `&str` | arguments to this function are incorrect | note: function defined here --> $RUST/core/src/hint.rs | | pub const fn black_box(dummy: T) -> T { | ^^^^^^^^^ error[E0308]: mismatched types --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:33:18 | 33 | #[benches::multi("hello")] | ^^^^^^^ | | | expected `u8`, found `&str` | arguments to this function are incorrect | note: function defined here --> $RUST/core/src/hint.rs | | pub const fn black_box(dummy: T) -> T { | ^^^^^^^^^ error[E0308]: mismatched types --> tests/ui/test_library_benchmark_invalid_bench_arguments.rs:40:5 | 39 | fn bench5(my: u8) -> String { | ------ expected `String` because of return type 40 | my | ^^- help: try using a conversion method: `.to_string()` | | | expected struct `String`, found `u8`