summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-12997-2.rs
blob: 9df965315ab38ed93c67941a52b62ef5c1aa1ad9 (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: --test

//! Test that makes sure wrongly-typed bench functions are rejected

#![feature(test)]

#[bench]
fn bar(x: isize) { }
//~^ ERROR mismatched types