]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type/type-check-defaults.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type / type-check-defaults.rs
index 5748c9bcff8cbe9dcc26f44381e6e757df222cf9..5380fae5417e463fc7b91d2e26062654ee19bbcb 100644 (file)
@@ -4,9 +4,9 @@ use std::ops::Add;
 
 struct Foo<T, U: FromIterator<T>>(T, U);
 struct WellFormed<Z = Foo<i32, i32>>(Z);
-//~^ ERROR a collection of type `i32` cannot be built from an iterator over elements of type `i32`
+//~^ ERROR a value of type `i32` cannot be built from an iterator over elements of type `i32`
 struct WellFormedNoBounds<Z:?Sized = Foo<i32, i32>>(Z);
-//~^ ERROR a collection of type `i32` cannot be built from an iterator over elements of type `i32`
+//~^ ERROR a value of type `i32` cannot be built from an iterator over elements of type `i32`
 
 struct Bounds<T:Copy=String>(T);
 //~^ ERROR the trait bound `std::string::String: std::marker::Copy` is not satisfied [E0277]