Merge pull request #621 from nasso/patch-1

Remove extra parenthesis
This commit is contained in:
Eric Huss 2019-07-08 16:17:02 -07:00 committed by GitHub
commit c0c912d8bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,11 @@ to set the limit based on the number of type substitutions.
> Note: The default in `rustc` is 1048576.
```rust,compile_fail
<!-- This code should fail to compile. Unfortunately rustdoc's `compile_fail`
stops after analysis phase, and this error is generated after that. So
this needs to be `ignore` for now. -->
```rust,compile_fail,ignore
#![type_length_limit = "8"]
fn f<T>(x: T) {}
@ -50,7 +54,7 @@ fn f<T>(x: T) {}
// This fails to compile because monomorphizing to
// `f::<(i32, i32, i32, i32, i32, i32, i32, i32, i32)>>` requires more
// than 8 type elements.
f(((1, 2, 3, 4, 5, 6, 7, 8, 9));
f((1, 2, 3, 4, 5, 6, 7, 8, 9));
```
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax