You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/cast/ptr-to-trait-obj-different-args.stderr
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
error[E0277]: the trait bound `dyn A: Unsize<dyn B>` is not satisfied
2
-
--> $DIR/ptr-to-trait-obj-different-args.rs:19:27
2
+
--> $DIR/ptr-to-trait-obj-different-args.rs:18:27
3
3
|
4
4
LL | let b: *const dyn B = a as _;
5
5
| ^^^^^^ the trait `Unsize<dyn B>` is not implemented for `dyn A`
6
6
|
7
7
= note: all implementations of `Unsize` are provided automatically by the compiler, see <https://doc.rust-lang.org/stable/std/marker/trait.Unsize.html> for more information
8
8
9
9
error[E0277]: the trait bound `dyn Trait<X>: Unsize<dyn Trait<Y>>` is not satisfied
10
-
--> $DIR/ptr-to-trait-obj-different-args.rs:22:34
10
+
--> $DIR/ptr-to-trait-obj-different-args.rs:21:34
11
11
|
12
12
LL | let y: *const dyn Trait<Y> = x as _;
13
13
| ^^^^^^ the trait `Unsize<dyn Trait<Y>>` is not implemented for `dyn Trait<X>`
14
14
|
15
15
= note: all implementations of `Unsize` are provided automatically by the compiler, see <https://doc.rust-lang.org/stable/std/marker/trait.Unsize.html> for more information
16
16
17
17
error[E0277]: the trait bound `dyn Trait<X>: Unsize<dyn Trait<T>>` is not satisfied
18
-
--> $DIR/ptr-to-trait-obj-different-args.rs:28:34
18
+
--> $DIR/ptr-to-trait-obj-different-args.rs:27:34
19
19
|
20
20
LL | let _: *const dyn Trait<T> = x as _;
21
21
| ^^^^^^ the trait `Unsize<dyn Trait<T>>` is not implemented for `dyn Trait<X>`
@@ -27,7 +27,7 @@ LL | fn generic<T>(x: *const dyn Trait<X>, t: *const dyn Trait<T>) where dyn Tra
27
27
| ++++++++++++++++++++++++++++++++++++++++
28
28
29
29
error[E0277]: the trait bound `dyn Trait<T>: Unsize<dyn Trait<X>>` is not satisfied
30
-
--> $DIR/ptr-to-trait-obj-different-args.rs:29:34
30
+
--> $DIR/ptr-to-trait-obj-different-args.rs:28:34
31
31
|
32
32
LL | let _: *const dyn Trait<X> = t as _;
33
33
| ^^^^^^ the trait `Unsize<dyn Trait<X>>` is not implemented for `dyn Trait<T>`
@@ -39,7 +39,7 @@ LL | fn generic<T>(x: *const dyn Trait<X>, t: *const dyn Trait<T>) where dyn Tra
39
39
| ++++++++++++++++++++++++++++++++++++++++
40
40
41
41
error[E0277]: the trait bound `dyn Assocked<Assoc = u8>: Unsize<dyn Assocked<Assoc = u32>>` is not satisfied
42
-
--> $DIR/ptr-to-trait-obj-different-args.rs:37:5
42
+
--> $DIR/ptr-to-trait-obj-different-args.rs:36:5
43
43
|
44
44
LL | x as _
45
45
| ^^^^^^ the trait `Unsize<dyn Assocked<Assoc = u32>>` is not implemented for `dyn Assocked<Assoc = u8>`
0 commit comments