Rollup merge of #35913 - frewsxcv:panic, r=steveklabnik
Mark panicking tests as `should_panic` instead of `no_run`. None
This commit is contained in:
commit
e3e439019f
@ -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!");
|
||||
```
|
||||
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user