2017-10-06 15:30:23 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/const.rs:26:9
|
|
|
|
|
|
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-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|