diff options
Diffstat (limited to 'tests/ui/issues/issue-12997-2.rs')
-rw-r--r-- | tests/ui/issues/issue-12997-2.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-12997-2.rs b/tests/ui/issues/issue-12997-2.rs new file mode 100644 index 000000000..9df965315 --- /dev/null +++ b/tests/ui/issues/issue-12997-2.rs @@ -0,0 +1,9 @@ +// compile-flags: --test + +//! Test that makes sure wrongly-typed bench functions are rejected + +#![feature(test)] + +#[bench] +fn bar(x: isize) { } +//~^ ERROR mismatched types |