Skip to content

Commit e668552

Browse files
borsehuss
authored andcommitted
Auto merge of #9316 - ehuss:fix-semver-1.51, r=alexcrichton
Fix semver docs for 1.51. 1.51 slightly changed the text of a few error messages. This should get CI passing again.
1 parent de983c9 commit e668552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/reference/semver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub trait Trait<T> {}
634634
use updated_crate::Trait;
635635
struct Foo;
636636
637-
impl Trait for Foo {} // Error: wrong number of type arguments
637+
impl Trait for Foo {} // Error: missing generics
638638
```
639639

640640
Mitigating strategies:
@@ -943,7 +943,7 @@ pub fn foo<T, U>() {}
943943
use updated_crate::foo;
944944
945945
fn main() {
946-
foo::<u8>(); // Error: wrong number of type arguments
946+
foo::<u8>(); // Error: this function takes 2 type arguments but only 1 type argument was supplied
947947
}
948948
```
949949

0 commit comments

Comments
 (0)