]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/extern-types-distinct-types.rs:9:5 |
b7449926 | 3 | | |
dfeec247 XL |
4 | LL | type A; |
5 | | ------- the found foreign type | |
6 | LL | type B; | |
7 | | ------- the expected foreign type | |
8 | ... | |
136023e0 XL |
9 | LL | fn foo(r: &A) -> &B { |
10 | | -- expected `&B` because of return type | |
532ac7d7 | 11 | LL | r |
b7449926 XL |
12 | | ^ expected extern type `B`, found extern type `A` |
13 | | | |
60c5eb7d XL |
14 | = note: expected reference `&B` |
15 | found reference `&A` | |
b7449926 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
19 | For more information about this error, try `rustc --explain E0308`. |