File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ pub struct Foo {
224
224
///////////////////////////////////////////////////////////
225
225
// Example usage that will break.
226
226
fn main() {
227
- let x = updated_crate::Foo { f1: 123 }; // Error: missing field `f2 `
227
+ let x = updated_crate::Foo { f1: 123 }; // Error: cannot construct `Foo `
228
228
}
229
229
```
230
230
@@ -738,7 +738,7 @@ pub struct Foo<A: Eq> {
738
738
use updated_crate::Foo;
739
739
740
740
fn main() {
741
- let s = Foo { f1: 1.23 }; // Error: the trait bound `{float}: std::cmp:: Eq` is not satisfied
741
+ let s = Foo { f1: 1.23 }; // Error: the trait bound `{float}: Eq` is not satisfied
742
742
}
743
743
```
744
744
@@ -1070,7 +1070,7 @@ pub fn foo<T: Copy + IntoIterator<Item = u8>>(x: T) {}
1070
1070
use updated_crate::foo;
1071
1071
1072
1072
fn main() {
1073
- foo(vec![1, 2, 3]); // Error: `std::marker:: Copy` is not implemented for `std::vec:: Vec<u8>`
1073
+ foo(vec![1, 2, 3]); // Error: `Copy` is not implemented for `Vec<u8>`
1074
1074
}
1075
1075
```
1076
1076
You can’t perform that action at this time.
0 commit comments