We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21d4ec9 + 66a2578 commit e3e4390Copy full SHA for e3e4390
src/doc/book/macros.md
@@ -662,7 +662,7 @@ Here are some common macros you’ll see in Rust code.
662
This macro causes the current thread to panic. You can give it a message
663
to panic with:
664
665
-```rust,no_run
+```rust,should_panic
666
panic!("oh no!");
667
```
668
@@ -688,7 +688,7 @@ These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
688
takes two values and checks them for equality. `true` passes, `false` `panic!`s.
689
Like this:
690
691
692
// A-ok!
693
694
assert!(true);
0 commit comments