2017-10-06 16:30:23 -04:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/const.rs:26:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | FOO => {}, //~ ERROR mismatched types
|
2017-10-06 16:30:23 -04:00
|
|
|
| ^^^ expected &Foo, found struct `Foo`
|
|
|
|
|
|
|
|
|
= note: expected type `&Foo`
|
|
|
|
found type `Foo`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|