Skip to content

Commit

Permalink
Add ignore to type_length_limit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 8, 2019
1 parent f99694d commit 964b901
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/attributes/limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 964b901

Please sign in to comment.