]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/assert.rs
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[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 }