1 error[E0277]: the trait bound `&mut usize: Default` is not satisfied
2 --> $DIR/suggest-adding-reference-to-trait-assoc-item.rs:13:9
4 LL | foo(Default::default());
5 | ^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `&mut usize`
7 help: consider mutably borrowing here
9 LL | foo(&mut Default::default());
12 error[E0277]: the trait bound `&usize: Default` is not satisfied
13 --> $DIR/suggest-adding-reference-to-trait-assoc-item.rs:14:9
15 LL | bar(Default::default());
16 | ^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `&usize`
18 help: consider borrowing here
20 LL | bar(&Default::default());
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0277`.