1 //@aux-build:proc_macros.rs
3 #![warn(clippy::toplevel_ref_arg)]
6 extern crate proc_macros
;
7 use proc_macros
::{external, inline_macros}
;
9 fn the_answer(ref mut x
: u8) {
20 fn fun_example(ref _x
: usize) {}
23 // do not lint in external macro
25 fn fun_example2(ref _x
: usize) {}