1 error[E0308]: mismatched types
4 LL | FOO => {}, //~ ERROR mismatched types
5 | ^^^ expected &Foo, found struct `Foo`
7 = note: expected type `&Foo`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.