1 error[E0308]: mismatched types
2 --> $DIR/issue-38371.rs:8:8
4 LL | fn foo(&_a: Foo) {}
5 | ^^^ --- expected due to this
7 | expected struct `Foo`, found reference
9 = note: expected struct `Foo`
11 help: to take parameter `_a` by reference, move `&` to the type
13 LL - fn foo(&_a: Foo) {}
14 LL + fn foo(_a: &Foo) {}
17 error[E0308]: mismatched types
18 --> $DIR/issue-38371.rs:16:9
20 LL | fn agh(&&_a: &u32) {}
21 | ^^^ ---- expected due to this
23 | expected `u32`, found reference
25 = note: expected type `u32`
27 help: consider removing `&` from the pattern
29 LL - fn agh(&&_a: &u32) {}
30 LL + fn agh(&_a: &u32) {}
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0308`.