mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
12 lines
252 B
Rust
12 lines
252 B
Rust
//@ 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
|