]> git.proxmox.com Git - rustc.git/blob - tests/ui/macros/assert.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }