summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-types-distinct-types.stderr
blob: 3e6dc5cefadf2e4275ece0df6e215d06c11e26e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: mismatched types
  --> $DIR/extern-types-distinct-types.rs:9:5
   |
LL |     type A;
   |     ------ the found foreign type
LL |     type B;
   |     ------ the expected foreign type
...
LL | fn foo(r: &A) -> &B {
   |                  -- expected `&B` because of return type
LL |     r
   |     ^ expected `&B`, found `&A`
   |
   = note: expected reference `&B`
              found reference `&A`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.