1 struct Foo {
2 }
3 
foo(&foo: Foo)4 fn foo(&foo: Foo) { //~ ERROR mismatched types
5 }
6 
bar(foo: Foo)7 fn bar(foo: Foo) {
8 }
9 
qux(foo: &Foo)10 fn qux(foo: &Foo) {
11 }
12 
zar(&foo: &Foo)13 fn zar(&foo: &Foo) {
14 }
15 
16 // The somewhat unexpected help message in this case is courtesy of
17 // match_default_bindings.
agh(&&bar: &u32)18 fn agh(&&bar: &u32) { //~ ERROR mismatched types
19 }
20 
bgh(&&bar: u32)21 fn bgh(&&bar: u32) { //~ ERROR mismatched types
22 }
23 
ugh(&[bar]: &u32)24 fn ugh(&[bar]: &u32) { //~ ERROR expected an array or slice
25 }
26 
main()27 fn main() {}
28