]> git.lizzy.rs Git - rust.git/blob - tests/ui/toplevel_ref_arg_non_rustfix.rs
iterate List by value
[rust.git] / tests / ui / toplevel_ref_arg_non_rustfix.rs
1 #![warn(clippy::toplevel_ref_arg)]
2 #![allow(unused)]
3
4 fn the_answer(ref mut x: u8) {
5     *x = 42;
6 }
7
8 fn main() {
9     let mut x = 0;
10     the_answer(x);
11 }