1
1
error[E0308]: mismatched types
2
- --> $DIR/invalid-upcast.rs:54 :35
2
+ --> $DIR/invalid-upcast.rs:53 :35
3
3
|
4
4
LL | let _: &dyn std::fmt::Debug = baz;
5
5
| -------------------- ^^^ expected trait `Debug`, found trait `Baz`
@@ -10,7 +10,7 @@ LL | let _: &dyn std::fmt::Debug = baz;
10
10
found reference `&dyn Baz`
11
11
12
12
error[E0308]: mismatched types
13
- --> $DIR/invalid-upcast.rs:56 :24
13
+ --> $DIR/invalid-upcast.rs:55 :24
14
14
|
15
15
LL | let _: &dyn Send = baz;
16
16
| --------- ^^^ expected trait `Send`, found trait `Baz`
@@ -21,7 +21,7 @@ LL | let _: &dyn Send = baz;
21
21
found reference `&dyn Baz`
22
22
23
23
error[E0308]: mismatched types
24
- --> $DIR/invalid-upcast.rs:58 :24
24
+ --> $DIR/invalid-upcast.rs:57 :24
25
25
|
26
26
LL | let _: &dyn Sync = baz;
27
27
| --------- ^^^ expected trait `Sync`, found trait `Baz`
@@ -32,7 +32,7 @@ LL | let _: &dyn Sync = baz;
32
32
found reference `&dyn Baz`
33
33
34
34
error[E0308]: mismatched types
35
- --> $DIR/invalid-upcast.rs:61 :25
35
+ --> $DIR/invalid-upcast.rs:60 :25
36
36
|
37
37
LL | let bar: &dyn Bar = baz;
38
38
| -------- ^^^ expected trait `Bar`, found trait `Baz`
@@ -43,7 +43,7 @@ LL | let bar: &dyn Bar = baz;
43
43
found reference `&dyn Baz`
44
44
45
45
error[E0308]: mismatched types
46
- --> $DIR/invalid-upcast.rs:63 :35
46
+ --> $DIR/invalid-upcast.rs:62 :35
47
47
|
48
48
LL | let _: &dyn std::fmt::Debug = bar;
49
49
| -------------------- ^^^ expected trait `Debug`, found trait `Bar`
@@ -54,7 +54,7 @@ LL | let _: &dyn std::fmt::Debug = bar;
54
54
found reference `&dyn Bar`
55
55
56
56
error[E0308]: mismatched types
57
- --> $DIR/invalid-upcast.rs:65 :24
57
+ --> $DIR/invalid-upcast.rs:64 :24
58
58
|
59
59
LL | let _: &dyn Send = bar;
60
60
| --------- ^^^ expected trait `Send`, found trait `Bar`
@@ -65,7 +65,7 @@ LL | let _: &dyn Send = bar;
65
65
found reference `&dyn Bar`
66
66
67
67
error[E0308]: mismatched types
68
- --> $DIR/invalid-upcast.rs:67 :24
68
+ --> $DIR/invalid-upcast.rs:66 :24
69
69
|
70
70
LL | let _: &dyn Sync = bar;
71
71
| --------- ^^^ expected trait `Sync`, found trait `Bar`
@@ -76,7 +76,7 @@ LL | let _: &dyn Sync = bar;
76
76
found reference `&dyn Bar`
77
77
78
78
error[E0308]: mismatched types
79
- --> $DIR/invalid-upcast.rs:70 :25
79
+ --> $DIR/invalid-upcast.rs:69 :25
80
80
|
81
81
LL | let foo: &dyn Foo = baz;
82
82
| -------- ^^^ expected trait `Foo`, found trait `Baz`
@@ -87,7 +87,7 @@ LL | let foo: &dyn Foo = baz;
87
87
found reference `&dyn Baz`
88
88
89
89
error[E0308]: mismatched types
90
- --> $DIR/invalid-upcast.rs:72 :35
90
+ --> $DIR/invalid-upcast.rs:71 :35
91
91
|
92
92
LL | let _: &dyn std::fmt::Debug = foo;
93
93
| -------------------- ^^^ expected trait `Debug`, found trait `Foo`
@@ -98,7 +98,7 @@ LL | let _: &dyn std::fmt::Debug = foo;
98
98
found reference `&dyn Foo`
99
99
100
100
error[E0308]: mismatched types
101
- --> $DIR/invalid-upcast.rs:74 :24
101
+ --> $DIR/invalid-upcast.rs:73 :24
102
102
|
103
103
LL | let _: &dyn Send = foo;
104
104
| --------- ^^^ expected trait `Send`, found trait `Foo`
@@ -109,7 +109,7 @@ LL | let _: &dyn Send = foo;
109
109
found reference `&dyn Foo`
110
110
111
111
error[E0308]: mismatched types
112
- --> $DIR/invalid-upcast.rs:76 :24
112
+ --> $DIR/invalid-upcast.rs:75 :24
113
113
|
114
114
LL | let _: &dyn Sync = foo;
115
115
| --------- ^^^ expected trait `Sync`, found trait `Foo`
@@ -120,7 +120,7 @@ LL | let _: &dyn Sync = foo;
120
120
found reference `&dyn Foo`
121
121
122
122
error[E0308]: mismatched types
123
- --> $DIR/invalid-upcast.rs:79 :25
123
+ --> $DIR/invalid-upcast.rs:78 :25
124
124
|
125
125
LL | let foo: &dyn Foo = bar;
126
126
| -------- ^^^ expected trait `Foo`, found trait `Bar`
@@ -131,7 +131,7 @@ LL | let foo: &dyn Foo = bar;
131
131
found reference `&dyn Bar`
132
132
133
133
error[E0308]: mismatched types
134
- --> $DIR/invalid-upcast.rs:81 :35
134
+ --> $DIR/invalid-upcast.rs:80 :35
135
135
|
136
136
LL | let _: &dyn std::fmt::Debug = foo;
137
137
| -------------------- ^^^ expected trait `Debug`, found trait `Foo`
@@ -142,7 +142,7 @@ LL | let _: &dyn std::fmt::Debug = foo;
142
142
found reference `&dyn Foo`
143
143
144
144
error[E0308]: mismatched types
145
- --> $DIR/invalid-upcast.rs:83 :24
145
+ --> $DIR/invalid-upcast.rs:82 :24
146
146
|
147
147
LL | let _: &dyn Send = foo;
148
148
| --------- ^^^ expected trait `Send`, found trait `Foo`
@@ -153,7 +153,7 @@ LL | let _: &dyn Send = foo;
153
153
found reference `&dyn Foo`
154
154
155
155
error[E0308]: mismatched types
156
- --> $DIR/invalid-upcast.rs:85 :24
156
+ --> $DIR/invalid-upcast.rs:84 :24
157
157
|
158
158
LL | let _: &dyn Sync = foo;
159
159
| --------- ^^^ expected trait `Sync`, found trait `Foo`
0 commit comments