From e1873091a860dce2c4cb7b27ee77ccb4809ec12e Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 1 Dec 2020 22:21:24 -0800 Subject: [PATCH] Fix semver documentation tests. --- src/doc/src/reference/semver.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index d4a8b7979c2..f081321838e 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -224,7 +224,7 @@ pub struct Foo { /////////////////////////////////////////////////////////// // Example usage that will break. fn main() { - let x = updated_crate::Foo { f1: 123 }; // Error: missing field `f2` + let x = updated_crate::Foo { f1: 123 }; // Error: cannot construct `Foo` } ``` @@ -738,7 +738,7 @@ pub struct Foo { use updated_crate::Foo; fn main() { - let s = Foo { f1: 1.23 }; // Error: the trait bound `{float}: std::cmp::Eq` is not satisfied + let s = Foo { f1: 1.23 }; // Error: the trait bound `{float}: Eq` is not satisfied } ``` @@ -1070,7 +1070,7 @@ pub fn foo>(x: T) {} use updated_crate::foo; fn main() { - foo(vec![1, 2, 3]); // Error: `std::marker::Copy` is not implemented for `std::vec::Vec` + foo(vec![1, 2, 3]); // Error: `Copy` is not implemented for `Vec` } ```