• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // revisions: with-generic-asset without-generic-asset
2 // [with-generic-asset] compile-flags: --cfg feature="generic_assert"
3 
main()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 }
10