fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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