2014-03-18 09:20:30 -04:00
|
|
|
//@ compile-flags: --test
|
|
|
|
|
|
|
|
|
|
//! Test that makes sure wrongly-typed bench functions are rejected
|
|
|
|
|
|
2019-07-27 15:06:49 +03:00
|
|
|
#![feature(test)]
|
|
|
|
|
|
2014-03-18 09:20:30 -04:00
|
|
|
#[bench]
|
2014-12-05 18:12:25 -08:00
|
|
|
fn bar(x: isize) { }
|
2015-01-12 01:01:44 -05:00
|
|
|
//~^ ERROR mismatched types
|