Skip to content

Commit

Permalink
Rollup merge of rust-lang#35913 - frewsxcv:panic, r=steveklabnik
Browse files Browse the repository at this point in the history
Mark panicking tests as `should_panic` instead of `no_run`.

None
  • Loading branch information
eddyb committed Aug 23, 2016
2 parents 23e10d5 + 66a2578 commit 152db5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/book/macros.md
Expand Up @@ -662,7 +662,7 @@ Here are some common macros you’ll see in Rust code.
This macro causes the current thread to panic. You can give it a message
to panic with:

```rust,no_run
```rust,should_panic
panic!("oh no!");
```

Expand All @@ -688,7 +688,7 @@ These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
takes two values and checks them for equality. `true` passes, `false` `panic!`s.
Like this:

```rust,no_run
```rust,should_panic
// A-ok!
assert!(true);
Expand Down

0 comments on commit 152db5b

Please sign in to comment.