]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12997-1.rs
Rollup merge of #91518 - luojia65:rustdoc-riscv-arch, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-12997-1.rs
1 // compile-flags: --test
2
3 //! Test that makes sure wrongly-typed bench functions aren't ignored
4
5 #![feature(test)]
6
7 #[bench]
8 fn foo() { } //~ ERROR functions used as benches
9
10 #[bench]
11 fn bar(x: isize, y: isize) { } //~ ERROR functions used as benches