diff options
Diffstat (limited to 'tests/ui/issues/issue-12997-1.rs')
-rw-r--r-- | tests/ui/issues/issue-12997-1.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-12997-1.rs b/tests/ui/issues/issue-12997-1.rs new file mode 100644 index 000000000..9f808dac3 --- /dev/null +++ b/tests/ui/issues/issue-12997-1.rs @@ -0,0 +1,11 @@ +// compile-flags: --test + +//! Test that makes sure wrongly-typed bench functions aren't ignored + +#![feature(test)] + +#[bench] +fn foo() { } //~ ERROR functions used as benches + +#[bench] +fn bar(x: isize, y: isize) { } //~ ERROR functions used as benches |