@@ -24,61 +24,51 @@ note: required by `Foo`
242415 | struct Foo<T, U: FromIterator<T>>(T, U);
2525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
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-
3727error[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
3929 |
40- 24 | struct Bounds<T:Copy=String>(T);
30+ 21 | struct Bounds<T:Copy=String>(T);
4131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
4232 |
4333 = note: required by `std::marker::Copy`
4434
4535error[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
4737 |
48- 27 | struct WhereClause<T=String>(T) where T: Copy;
38+ 24 | struct WhereClause<T=String>(T) where T: Copy;
4939 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
5040 |
5141 = note: required by `std::marker::Copy`
5242
5343error[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
5545 |
56- 30 | trait TraitBound<T:Copy=String> {}
46+ 27 | trait TraitBound<T:Copy=String> {}
5747 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
5848 |
5949 = note: required by `std::marker::Copy`
6050
6151error[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
6353 |
64- 34 | trait Base<T = String>: Super<T> { }
54+ 31 | trait Base<T = String>: Super<T> { }
6555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
6656 |
6757 = help: consider adding a `where T: std::marker::Copy` bound
6858note: required by `Super`
69- --> $DIR/type-check-defaults.rs:33 :1
59+ --> $DIR/type-check-defaults.rs:30 :1
7060 |
71- 33 | trait Super<T: Copy> { }
61+ 30 | trait Super<T: Copy> { }
7262 | ^^^^^^^^^^^^^^^^^^^^
7363
7464error[E0277]: cannot add `u8` to `i32`
75- --> $DIR/type-check-defaults.rs:37 :1
65+ --> $DIR/type-check-defaults.rs:34 :1
7666 |
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> {}
7868 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u8`
7969 |
8070 = help: the trait `std::ops::Add<u8>` is not implemented for `i32`
8171 = note: required by `std::ops::Add`
8272
83- error: aborting due to 8 previous errors
73+ error: aborting due to 7 previous errors
8474
0 commit comments