]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-50480.rs
better ObligationCause for normalization errors in can_type_implement_copy
[rust.git] / src / test / ui / issues / issue-50480.rs
index 10597caf5b2dc09759e2a3430a26f592b7938e68..ca81db023ec3b356570955587d3bb9a737e2c740 100644 (file)
@@ -1,17 +1,17 @@
 #[derive(Clone, Copy)]
 //~^ ERROR the trait `Copy` may not be implemented for this type
+//~| ERROR `i32` is not an iterator
 struct Foo(N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
 //~^ ERROR cannot find type `NotDefined` in this scope
 //~| ERROR cannot find type `NotDefined` in this scope
 //~| ERROR cannot find type `N` in this scope
 //~| ERROR cannot find type `N` in this scope
-//~| ERROR `i32` is not an iterator
 
 #[derive(Clone, Copy)]
 //~^ ERROR the trait `Copy` may not be implemented for this type
+//~| ERROR `i32` is not an iterator
 struct Bar<T>(T, N, NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
 //~^ ERROR cannot find type `NotDefined` in this scope
 //~| ERROR cannot find type `N` in this scope
-//~| ERROR `i32` is not an iterator
 
 fn main() {}