2017-10-06 16:30:23 -04:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/const.rs:14:9
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
2020-02-25 05:41:03 +01:00
|
|
|
LL | match &f {
|
|
|
|
|
| -- this expression has type `&Foo`
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | FOO => {},
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^ expected `&Foo`, found struct `Foo`
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|