Skip to content

Commit

Permalink
Fix semver check for rust 1.54.0
Browse files Browse the repository at this point in the history
This updates semver.md to use the new error message for reporting missing
generic arguments.
  • Loading branch information
erickt committed Aug 4, 2021
1 parent cc17afb commit 3073edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/src/reference/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ pub fn foo<T, U>() {}
use updated_crate::foo;
fn main() {
foo::<u8>(); // Error: this function takes 2 type arguments but only 1 type argument was supplied
foo::<u8>(); // Error: this function takes 2 generic arguments but 1 generic argument was supplied
}
```

Expand Down

0 comments on commit 3073edb

Please sign in to comment.