2022-06-15 05:37:40 -05:00
|
|
|
// revisions: with-generic-asset without-generic-asset
|
|
|
|
// [with-generic-asset] compile-flags: --cfg feature="generic_assert"
|
|
|
|
|
2018-12-03 19:45:25 -06:00
|
|
|
fn main() {
|
|
|
|
assert!(); //~ ERROR requires a boolean expression
|
2018-12-04 13:10:32 -06:00
|
|
|
assert!(struct); //~ ERROR expected expression
|
2018-12-03 19:45:25 -06:00
|
|
|
debug_assert!(); //~ ERROR requires a boolean expression
|
2018-12-04 13:10:32 -06:00
|
|
|
debug_assert!(struct); //~ ERROR expected expression
|
2018-12-03 19:45:25 -06:00
|
|
|
}
|