From f99694d41ddb2122ca440682c319e7bbf8423cc1 Mon Sep 17 00:00:00 2001 From: nasso Date: Sat, 15 Jun 2019 19:01:57 +0200 Subject: [PATCH 1/2] Remove extra parenthesis --- src/attributes/limits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/limits.md b/src/attributes/limits.md index 1ff5b8883..7834961d0 100644 --- a/src/attributes/limits.md +++ b/src/attributes/limits.md @@ -50,7 +50,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 From 964b901512ad6cb8a34699e37840959324c8d7af Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 8 Jul 2019 16:12:20 -0700 Subject: [PATCH 2/2] Add `ignore` to type_length_limit test. --- src/attributes/limits.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/attributes/limits.md b/src/attributes/limits.md index 7834961d0..4ed8392fb 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) {}