1 error[E0308]: mismatched types
2 --> $DIR/extern-types-distinct-types.rs:9:5
5 | ------- the found foreign type
7 | ------- the expected foreign type
9 LL | fn foo(r: &A) -> &B {
10 | -- expected `&B` because of return type
12 | ^ expected extern type `B`, found extern type `A`
14 = note: expected reference `&B`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.