blob: 7fc870946b9343d984fa031eda9446d55eed2d4c [file] [log] [blame]
//@ run-rustfix
#![allow(unused_variables)]
fn foo(foo: &mut usize) {
todo!()
}
fn bar(bar: &usize) {
todo!()
}
fn main() {
foo(Default::default()); //~ the trait bound `&mut usize: Default` is not satisfied
bar(Default::default()); //~ the trait bound `&usize: Default` is not satisfied
}