error[E0308]: mismatched types | |
--> $DIR/extern-types-distinct-types.rs:9:5 | |
| | |
LL | r | |
| ^ expected extern type `B`, found extern type `A` | |
| | |
= note: expected reference `&B` | |
found reference `&A` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |