1 error[E0308]: mismatched types
2 --> $DIR/issue-12997-2.rs:8:1
5 | -------- in this procedural macro expansion
6 LL | fn bar(x: isize) { }
9 | expected `isize`, found `&mut Bencher`
10 | arguments to this function are incorrect
12 note: function defined here
13 --> $DIR/issue-12997-2.rs:8:4
15 LL | fn bar(x: isize) { }
17 = note: this error originates in the attribute macro `bench` (in Nightly builds, run with -Z macro-backtrace for more info)
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.