fork/rust

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

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

master
314 B15 linesraw
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}