1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// MIR for `main` after built
| User Type Annotations
| 0: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [] }, span: $DIR/issue_72181_1.rs:16:12: 16:16, inferred_ty: Void
| 1: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [] }, span: $DIR/issue_72181_1.rs:16:12: 16:16, inferred_ty: Void
|
fn main() -> () {
let mut _0: ();
let mut _1: !;
let _2: Void as UserTypeProjection { base: UserType(0), projs: [] };
let mut _3: ();
let _4: !;
let mut _5: Void;
scope 1 {
debug v => _2;
}
scope 2 {
}
bb0: {
StorageLive(_2);
StorageLive(_3);
_3 = ();
_2 = transmute::<(), Void>(move _3) -> bb4;
}
bb1: {
StorageDead(_3);
FakeRead(ForLet(None), _2);
AscribeUserType(_2, o, UserTypeProjection { base: UserType(1), projs: [] });
StorageLive(_4);
StorageLive(_5);
_5 = move _2;
_4 = f(move _5) -> bb4;
}
bb2: {
StorageDead(_5);
StorageDead(_4);
StorageDead(_2);
unreachable;
}
bb3: {
return;
}
bb4 (cleanup): {
resume;
}
}
|