2017-10-06 15:30:23 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/const.rs:26:9
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
26 | 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"
|