@@ -2,11 +2,11 @@ error[E0277]: the trait bound `RawImpl<_>: Raw<_>` is not satisfied
2
2
--> $DIR/issue-62742.rs:4:5
3
3
|
4
4
LL | WrongImpl::foo(0i32);
5
- | ^^^^^^^^^^^^^^ the trait `Raw<_>` is not implemented for `RawImpl<_>`
5
+ | ^^^^^^^^^^^^^^^^^^^^ the trait `Raw<_>` is not implemented for `RawImpl<_>`
6
6
|
7
7
= help: the trait `Raw<[_]>` is implemented for `RawImpl<_>`
8
8
note: required by a bound in `SafeImpl::<T, A>::foo`
9
- --> $DIR/issue-62742.rs:30 :20
9
+ --> $DIR/issue-62742.rs:29 :20
10
10
|
11
11
LL | impl<T: ?Sized, A: Raw<T>> SafeImpl<T, A> {
12
12
| ^^^^^^ required by this bound in `SafeImpl::<T, A>::foo`
@@ -21,21 +21,13 @@ LL | WrongImpl::foo(0i32);
21
21
|
22
22
= help: the trait `Raw<[_]>` is implemented for `RawImpl<_>`
23
23
note: required by a bound in `SafeImpl`
24
- --> $DIR/issue-62742.rs:28 :35
24
+ --> $DIR/issue-62742.rs:27 :35
25
25
|
26
26
LL | pub struct SafeImpl<T: ?Sized, A: Raw<T>>(PhantomData<(A, T)>);
27
27
| ^^^^^^ required by this bound in `SafeImpl`
28
28
29
- error[E0277]: the trait bound `RawImpl<_>: Raw<_>` is not satisfied
30
- --> $DIR/issue-62742.rs:4:5
31
- |
32
- LL | WrongImpl::foo(0i32);
33
- | ^^^^^^^^^^^^^^^^^^^^ the trait `Raw<_>` is not implemented for `RawImpl<_>`
34
- |
35
- = help: the trait `Raw<[_]>` is implemented for `RawImpl<_>`
36
-
37
29
error[E0599]: the function or associated item `foo` exists for struct `SafeImpl<(), RawImpl<()>>`, but its trait bounds were not satisfied
38
- --> $DIR/issue-62742.rs:8 :22
30
+ --> $DIR/issue-62742.rs:7 :22
39
31
|
40
32
LL | WrongImpl::<()>::foo(0i32);
41
33
| ^^^ function or associated item cannot be called on `SafeImpl<(), RawImpl<()>>` due to unsatisfied trait bounds
@@ -47,33 +39,33 @@ LL | pub struct SafeImpl<T: ?Sized, A: Raw<T>>(PhantomData<(A, T)>);
47
39
| ----------------------------------------- function or associated item `foo` not found for this struct
48
40
|
49
41
note: trait bound `RawImpl<()>: Raw<()>` was not satisfied
50
- --> $DIR/issue-62742.rs:30 :20
42
+ --> $DIR/issue-62742.rs:29 :20
51
43
|
52
44
LL | impl<T: ?Sized, A: Raw<T>> SafeImpl<T, A> {
53
45
| ^^^^^^ --------------
54
46
| |
55
47
| unsatisfied trait bound introduced here
56
48
note: the trait `Raw` must be implemented
57
- --> $DIR/issue-62742.rs:14 :1
49
+ --> $DIR/issue-62742.rs:13 :1
58
50
|
59
51
LL | pub trait Raw<T: ?Sized> {
60
52
| ^^^^^^^^^^^^^^^^^^^^^^^^
61
53
62
54
error[E0277]: the trait bound `RawImpl<()>: Raw<()>` is not satisfied
63
- --> $DIR/issue-62742.rs:8 :5
55
+ --> $DIR/issue-62742.rs:7 :5
64
56
|
65
57
LL | WrongImpl::<()>::foo(0i32);
66
58
| ^^^^^^^^^^^^^^^ the trait `Raw<()>` is not implemented for `RawImpl<()>`
67
59
|
68
60
= help: the trait `Raw<[()]>` is implemented for `RawImpl<()>`
69
61
= help: for that trait implementation, expected `[()]`, found `()`
70
62
note: required by a bound in `SafeImpl`
71
- --> $DIR/issue-62742.rs:28 :35
63
+ --> $DIR/issue-62742.rs:27 :35
72
64
|
73
65
LL | pub struct SafeImpl<T: ?Sized, A: Raw<T>>(PhantomData<(A, T)>);
74
66
| ^^^^^^ required by this bound in `SafeImpl`
75
67
76
- error: aborting due to 5 previous errors
68
+ error: aborting due to 4 previous errors
77
69
78
70
Some errors have detailed explanations: E0277, E0599.
79
71
For more information about an error, try `rustc --explain E0277`.
0 commit comments