diff --git a/src/attributes/limits.md b/src/attributes/limits.md index 1ff5b8883f734..4ed8392fbfe47 100644 --- a/src/attributes/limits.md +++ b/src/attributes/limits.md @@ -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 + + +```rust,compile_fail,ignore #![type_length_limit = "8"] fn f(x: T) {} @@ -50,7 +54,7 @@ fn f(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