]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/assert.rs
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
[rust.git] / tests / ui / macros / assert.rs
1 // revisions: with-generic-asset without-generic-asset
2 // [with-generic-asset] compile-flags: --cfg feature="generic_assert"
3
4 fn main() {
5     assert!();  //~ ERROR requires a boolean expression
6     assert!(struct); //~ ERROR expected expression
7     debug_assert!(); //~ ERROR requires a boolean expression
8     debug_assert!(struct); //~ ERROR expected expression
9 }