]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/ui/extern/extern-types-distinct-types.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / extern / extern-types-distinct-types.stderr
... / ...
CommitLineData
1error[E0308]: mismatched types
2 --> $DIR/extern-types-distinct-types.rs:9:5
3 |
4LL | type A;
5 | ------- the found foreign type
6LL | type B;
7 | ------- the expected foreign type
8...
9LL | fn foo(r: &A) -> &B {
10 | -- expected `&B` because of return type
11LL | r
12 | ^ expected extern type `B`, found extern type `A`
13 |
14 = note: expected reference `&B`
15 found reference `&A`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0308`.