@@ -24,61 +24,51 @@ note: required by `Foo`
24
24
15 | struct Foo<T, U: FromIterator<T>>(T, U);
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
27
- error[E0277]: the trait bound `A: std::iter::Iterator` is not satisfied
28
- --> $DIR/type-check-defaults.rs:21:32
29
- |
30
- 21 | struct WellFormedProjection<A, T=<A as Iterator>::Item>(A, T);
31
- | ^ `A` is not an iterator; maybe try calling `.iter()` or a similar method
32
- |
33
- = help: the trait `std::iter::Iterator` is not implemented for `A`
34
- = help: consider adding a `where A: std::iter::Iterator` bound
35
- = note: required by `std::iter::Iterator`
36
-
37
27
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
38
- --> $DIR/type-check-defaults.rs:24 :1
28
+ --> $DIR/type-check-defaults.rs:21 :1
39
29
|
40
- 24 | struct Bounds<T:Copy=String>(T);
30
+ 21 | struct Bounds<T:Copy=String>(T);
41
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
42
32
|
43
33
= note: required by `std::marker::Copy`
44
34
45
35
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
46
- --> $DIR/type-check-defaults.rs:27 :1
36
+ --> $DIR/type-check-defaults.rs:24 :1
47
37
|
48
- 27 | struct WhereClause<T=String>(T) where T: Copy;
38
+ 24 | struct WhereClause<T=String>(T) where T: Copy;
49
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
50
40
|
51
41
= note: required by `std::marker::Copy`
52
42
53
43
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
54
- --> $DIR/type-check-defaults.rs:30 :1
44
+ --> $DIR/type-check-defaults.rs:27 :1
55
45
|
56
- 30 | trait TraitBound<T:Copy=String> {}
46
+ 27 | trait TraitBound<T:Copy=String> {}
57
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
58
48
|
59
49
= note: required by `std::marker::Copy`
60
50
61
51
error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
62
- --> $DIR/type-check-defaults.rs:34 :1
52
+ --> $DIR/type-check-defaults.rs:31 :1
63
53
|
64
- 34 | trait Base<T = String>: Super<T> { }
54
+ 31 | trait Base<T = String>: Super<T> { }
65
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
66
56
|
67
57
= help: consider adding a `where T: std::marker::Copy` bound
68
58
note: required by `Super`
69
- --> $DIR/type-check-defaults.rs:33 :1
59
+ --> $DIR/type-check-defaults.rs:30 :1
70
60
|
71
- 33 | trait Super<T: Copy> { }
61
+ 30 | trait Super<T: Copy> { }
72
62
| ^^^^^^^^^^^^^^^^^^^^
73
63
74
64
error[E0277]: cannot add `u8` to `i32`
75
- --> $DIR/type-check-defaults.rs:37 :1
65
+ --> $DIR/type-check-defaults.rs:34 :1
76
66
|
77
- 37 | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
67
+ 34 | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
78
68
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u8`
79
69
|
80
70
= help: the trait `std::ops::Add<u8>` is not implemented for `i32`
81
71
= note: required by `std::ops::Add`
82
72
83
- error: aborting due to 8 previous errors
73
+ error: aborting due to 7 previous errors
84
74
0 commit comments