Skip to content

Commit c0c912d

Browse files
authored
Merge pull request rust-lang#621 from nasso/patch-1
Remove extra parenthesis
2 parents 77ea043 + 964b901 commit c0c912d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/attributes/limits.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,19 @@ to set the limit based on the number of type substitutions.
4242

4343
> Note: The default in `rustc` is 1048576.
4444
45-
```rust,compile_fail
45+
<!-- This code should fail to compile. Unfortunately rustdoc's `compile_fail`
46+
stops after analysis phase, and this error is generated after that. So
47+
this needs to be `ignore` for now. -->
48+
49+
```rust,compile_fail,ignore
4650
#![type_length_limit = "8"]
4751
4852
fn f<T>(x: T) {}
4953
5054
// This fails to compile because monomorphizing to
5155
// `f::<(i32, i32, i32, i32, i32, i32, i32, i32, i32)>>` requires more
5256
// than 8 type elements.
53-
f(((1, 2, 3, 4, 5, 6, 7, 8, 9));
57+
f((1, 2, 3, 4, 5, 6, 7, 8, 9));
5458
```
5559

5660
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax

0 commit comments

Comments
 (0)