2017-10-06 15:30:23 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-03-26 16:39:29 -05:00
|
|
|
--> $DIR/const.rs:24:9
|
2017-10-06 15:30:23 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | FOO => {}, //~ ERROR mismatched types
|
2017-10-06 15:30:23 -05:00
|
|
|
| ^^^ expected &Foo, found struct `Foo`
|
|
|
|
|
|
|
|
|
= note: expected type `&Foo`
|
|
|
|
found type `Foo`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|