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