Skip to content

Commit 3e84aed

Browse files
committed
Update UI test
1 parent c84b781 commit 3e84aed

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
+11-10
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,75 @@
11
error[E0277]: the trait bound `i32: std::iter::FromIterator<i32>` is not satisfied
22
--> $DIR/type-check-defaults.rs:16:19
33
|
4-
16 | struct WellFormed<Z = Foo<i32, i32>>(Z);
4+
LL | struct WellFormed<Z = Foo<i32, i32>>(Z);
55
| ^ a collection of type `i32` cannot be built from an iterator over elements of type `i32`
66
|
77
= help: the trait `std::iter::FromIterator<i32>` is not implemented for `i32`
88
note: required by `Foo`
99
--> $DIR/type-check-defaults.rs:15:1
1010
|
11-
15 | struct Foo<T, U: FromIterator<T>>(T, U);
11+
LL | struct Foo<T, U: FromIterator<T>>(T, U);
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

1414
error[E0277]: the trait bound `i32: std::iter::FromIterator<i32>` is not satisfied
1515
--> $DIR/type-check-defaults.rs:18:27
1616
|
17-
18 | struct WellFormedNoBounds<Z:?Sized = Foo<i32, i32>>(Z);
17+
LL | struct WellFormedNoBounds<Z:?Sized = Foo<i32, i32>>(Z);
1818
| ^ a collection of type `i32` cannot be built from an iterator over elements of type `i32`
1919
|
2020
= help: the trait `std::iter::FromIterator<i32>` is not implemented for `i32`
2121
note: required by `Foo`
2222
--> $DIR/type-check-defaults.rs:15:1
2323
|
24-
15 | struct Foo<T, U: FromIterator<T>>(T, U);
24+
LL | struct Foo<T, U: FromIterator<T>>(T, U);
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626

2727
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
2828
--> $DIR/type-check-defaults.rs:21:1
2929
|
30-
21 | struct Bounds<T:Copy=String>(T);
30+
LL | struct Bounds<T:Copy=String>(T);
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
3232
|
3333
= note: required by `std::marker::Copy`
3434

3535
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
3636
--> $DIR/type-check-defaults.rs:24:1
3737
|
38-
24 | struct WhereClause<T=String>(T) where T: Copy;
38+
LL | struct WhereClause<T=String>(T) where T: Copy;
3939
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
4040
|
4141
= note: required by `std::marker::Copy`
4242

4343
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
4444
--> $DIR/type-check-defaults.rs:27:1
4545
|
46-
27 | trait TraitBound<T:Copy=String> {}
46+
LL | trait TraitBound<T:Copy=String> {}
4747
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
4848
|
4949
= note: required by `std::marker::Copy`
5050

5151
error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
5252
--> $DIR/type-check-defaults.rs:31:1
5353
|
54-
31 | trait Base<T = String>: Super<T> { }
54+
LL | trait Base<T = String>: Super<T> { }
5555
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
5656
|
5757
= help: consider adding a `where T: std::marker::Copy` bound
5858
note: required by `Super`
5959
--> $DIR/type-check-defaults.rs:30:1
6060
|
61-
30 | trait Super<T: Copy> { }
61+
LL | trait Super<T: Copy> { }
6262
| ^^^^^^^^^^^^^^^^^^^^
6363

6464
error[E0277]: cannot add `u8` to `i32`
6565
--> $DIR/type-check-defaults.rs:34:1
6666
|
67-
34 | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
67+
LL | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
6868
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u8`
6969
|
7070
= help: the trait `std::ops::Add<u8>` is not implemented for `i32`
7171
= note: required by `std::ops::Add`
7272

7373
error: aborting due to 7 previous errors
7474

75+
If you want more information on this error, try using "rustc --explain E0277"

0 commit comments

Comments
 (0)