fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2#![allow(unused_variables)] 3 4fn foo(foo: &mut usize) { 5 todo!() 6} 7 8fn bar(bar: &usize) { 9 todo!() 10} 11 12fn main() { 13 foo(&mut Default::default()); //~ the trait bound `&mut usize: Default` is not satisfied 14 bar(&Default::default()); //~ the trait bound `&usize: Default` is not satisfied 15}